Code |
Context
// Load Page Function
$page_function = $this->PageFunction->get_controller_function($menupunkt, $kanton_id, $parameter1);
$menupunkt = "personnes"
$kanton = 0
$parameter1 = "tomas-jara"
$q = "select PageFunction.id, PageFunction.controller, PageFunction.function, Page.cache, Page.id, BlogPage.title, BlogPage.fb_open_graph, Page2.id, Page2.cache, SubMenu.title, SubMenu.admin_only from page_functions as PageFunction join sub_menu as SubMenu on (SubMenu.page_function = PageFunction.id) join top_menu as TopMenu on (SubMenu.top_menu_id = TopMenu.id) left join pages as Page on (Page.sub_menu = SubMenu.id AND PageFunction.id=3) left join blog_page as BlogPage on (BlogPage.alias='tomas-jara' AND BlogPage.alias !='' AND BlogPage.deleted=0 AND ((BlogPage.sub_menu_id = SubMenu.id AND PageFunction.id=4) OR (PageFunction.id in (13,14)))) left join pages as Page2 on (Page2.blog_page_id = BlogPage.id) where SubMenu.alias='personnes' AND SubMenu.inaktiv=0 AND SubMenu.deleted=0 AND ((TopMenu.sprache='de' OR SubMenu.kanton!=0) OR SubMenu.zweisprachig) AND (SubMenu.kanton=0 OR (SubMenu.kanton=0 AND SubMenu.top_menu_id in (1, 6) ))"
$res = array()
PageFunction::get_controller_function() - APP/models/page_function.php, line 25
MenuController::index() - APP/controllers/menu_controller.php, line 95
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83