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-des-sites-anfa-et-mohammedia-le-vendredi-31-juillet-2020'
$p = array(
'Page' => array(
'id' => '391',
'domain' => 'casablanca',
'menu_id' => '3',
'submenu_id' => null,
'type' => '',
'name' => 'FERMETURE DES SITES ANFA ET MOHAMMEDIA LE VENDREDI 31 JUILLET 2020',
'slug' => 'fermeture-des-sites-anfa-et-mohammedia-le-vendredi-31-juillet-2020',
'date_page' => '2020-07-27',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => '',
'description' => '',
'content' => '<p>Nous informons nos chers membres de la fermeture des sites Anfa et Mohammedia le Vendredi 31 Juillet 2020 à l'occasion de Aid Al Adha.</p>
<p>Bonne fête!</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '1478',
'view_name' => '',
'created' => '2020-07-27 09:41:06',
'modified' => '2020-08-04 14:20:00',
'thumb' => '/img/uploads/116103036_1601847893328599_6599034496803987697_n.jpg'
),
'Menu' => array(
'id' => '3',
'domain' => 'casablanca',
'name' => 'LA VIE DU CLUB',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1478',
'ref' => 'Page',
'ref_id' => '391',
'type' => 'pic',
'file' => '/img/uploads/116103036_1601847893328599_6599034496803987697_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/116103036_1601847893328599_6599034496803987697_n.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1478',
'ref' => 'Page',
'ref_id' => '391',
'type' => 'pic',
'file' => '/img/uploads/116103036_1601847893328599_6599034496803987697_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/116103036_1601847893328599_6599034496803987697_n.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