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 = 'fermeture-du-parcours-d'anfa-ce-mardi-05-octobre-2021'
$p = array(
'Page' => array(
'id' => '469',
'domain' => 'casablanca',
'menu_id' => '3',
'submenu_id' => null,
'type' => '',
'name' => 'FERMETURE DU PARCOURS D'ANFA CE MARDI 05 OCTOBRE 2021',
'slug' => 'fermeture-du-parcours-d'anfa-ce-mardi-05-octobre-2021',
'date_page' => '2021-10-05',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => '',
'description' => '',
'content' => '<p>Chers membres,</p>
<p>Nous vous rappelons qu'en raison des courses hippiques, le Parcours d'Anfa sera fermé demain: Mardi 5 Octobre 2021 de 11h00 à 17h00.</p>
<p>Nous comptons sur votre compréhension.</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '1775',
'view_name' => '',
'created' => '2021-10-04 12:32:18',
'modified' => '2021-10-16 11:17:30',
'thumb' => '/img/uploads/2-9.jpg'
),
'Menu' => array(
'id' => '3',
'domain' => 'casablanca',
'name' => 'LA VIE DU CLUB',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1775',
'ref' => 'Page',
'ref_id' => '469',
'type' => 'pic',
'file' => '/img/uploads/2-9.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/2-9.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1775',
'ref' => 'Page',
'ref_id' => '469',
'type' => 'pic',
'file' => '/img/uploads/2-9.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/2-9.jpg'
)
),
'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