Example #1
0
 /**
  * put your comment there...
  * 
  * @param string $tpl
  * @param string $class
  * @return BaseLayout
  */
 static function layout($tpl = null, $class = 'Layout')
 {
     if ($tpl !== null) {
         Core::load($class, Core::kFTLayout);
         //			include kFWCorePath.'/layouts/'.$class.kPhpExt;
         self::$_layout = new $class($tpl, App::config());
     }
     return self::$_layout;
 }