public static function setLayout($layoutname)
 {
     $mylayout = new Layout($layoutname);
     Application::$_layout = $mylayout;
 }