protected function tpl() { $config = array('tpl_dir' => APP_PATH . 'widgets/' . $this->name . '/', 'cache_dir' => CACHE_PATH, 'tpl_ext' => 'tpl', 'auto_escape' => false); $view = new Tpl(); $view->objectConfigure($config); $view->assign('c', $this); return $view; }