Exemplo n.º 1
0
 protected function template_set_global_vars()
 {
     parent::template_set_global_vars();
     if ($this->request->current()->is_initial()) {
         View::set_global('MAIN_SITE', $this->site_main());
     }
 }
Exemplo n.º 2
0
 protected function menu_parse_item($pages, $url)
 {
     $return = parent::menu_parse_item($pages, $url);
     $prop_name = Kohana::$config->load('_megamenu.page_property');
     $helper_property = ORM_Helper::factory('page')->property_helper();
     $sub = $helper_property->search(array($prop_name => 'true'), TRUE);
     $megamenu_pages = ORM::factory('page')->where('id', 'IN', $sub)->find_all()->as_array(NULL, 'id');
     $this->menu_megamenu($return, $megamenu_pages);
     return $return;
 }