public function create() { //$core = Singleton::factory('Core'); $title = KvLite::get('site', 'title'); $this->headTitle($title)->setSeparator(' :: '); $this->genMeta(); //$this->headLink()->prependStylesheet('/asset/css/layout.css'); //$this->headLink()->prependStylesheet('/asset/css/main.css'); //$this->headLink()->prependStylesheet('/asset/css/base.css'); if (defined('TIMERSTART') && !defined('TIMERTOTAL')) { timer(); } return $this->render('layout.phtml'); }
protected static function getInstance() { if (self::$instance === NULL) { $class = __CLASS__; self::$instance = new $class(); } return self::$instance; }