Example #1
0
 /**
  * Prepare template
  * 
  * @access	protected
  */
 protected function _prepare_template()
 {
     $theme_path = \Config::get('app.frontend.template');
     if (null === $theme_path) {
         $theme_path = DOCROOT . 'themes/default/';
         \Config::set('app.frontend.template', $theme_path);
     }
     \Hybrid\View::set_path($theme_path);
     \Asset::add_path($theme_path . 'assets/');
     if (true === $this->auto_render) {
         $this->template = \Hybrid\View::factory();
         $this->template->auto_encode(false);
         $this->template->set_filename('index');
     }
 }