Code Context //if($this->auth['role']!='admin') {
$this->loadModel('PagesUser');
$pages_present = $this->PagesUser->find('first', array('conditions'=>array('user_id'=>$this->auth['id'], '1'=>'1 and page_id in(select id from pages where slug="'.$slug.'")')));
$slug = 'contact'
$p = array(
'Page' => array(
'id' => '36',
'domain' => 'casablanca',
'menu_id' => null,
'submenu_id' => null,
'type' => '',
'name' => 'Contactez-nous',
'slug' => 'contact',
'date_page' => null,
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => '',
'description' => '',
'content' => '',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '0',
'view_name' => 'contact',
'created' => '2018-05-31 01:39:48',
'modified' => '2018-05-31 01:41:53'
),
'Menu' => array(
'id' => null,
'domain' => null,
'name' => null,
'color' => null,
'link' => null,
'type' => null
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'type' => null,
'file' => null,
'name' => null,
'nature' => null,
'competition' => null,
'position' => null
),
'Gallery' => array(),
'Prive' => array(),
'Depart' => array(),
'Resultat' => array(),
'Partie' => array()
)
PagesController::single() - APP/Controller/PagesController.php, line 46
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107