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 = 'presentation-du-livre-du-professeur-rachid-lazrak-au-rgam-d'anfa'
$p = array(
'Page' => array(
'id' => '274',
'domain' => 'casablanca',
'menu_id' => '5',
'submenu_id' => null,
'type' => '',
'name' => 'PRESENTATION DU LIVRE DU PROFESSEUR RACHID LAZRAK AU RGAM D'ANFA',
'slug' => 'presentation-du-livre-du-professeur-rachid-lazrak-au-rgam-d'anfa',
'date_page' => '2019-04-11',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => 'culterels',
'description' => '',
'content' => '<p>Franc succès de la présentation du livre : Jésus , une grande figure biblique du coran par le Pr Rachid Lazrak hier à Anfa en présence d’un parterre de membres tenus en haleine pendant toute la conférence.<br />
Passionnant sujet rehaussé par la qualité de notre orateur . Qu’il en soit vivement remercié !</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => 'surplace',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '1116',
'view_name' => '',
'created' => '2019-04-02 10:48:35',
'modified' => '2019-04-24 09:58:51',
'thumb' => '/img/uploads/57366720_1203718603141532_8296919678115119104_n.jpg'
),
'Menu' => array(
'id' => '5',
'domain' => 'casablanca',
'name' => 'EVÉNEMENTS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1116',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/57366720_1203718603141532_8296919678115119104_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/57366720_1203718603141532_8296919678115119104_n.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1084',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/Presentation_Livre_Rachid_LAzrak.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Presentation_Livre_Rachid_LAzrak.jpg'
),
(int) 1 => array(
'id' => '1116',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/57366720_1203718603141532_8296919678115119104_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/57366720_1203718603141532_8296919678115119104_n.jpg'
),
(int) 2 => array(
'id' => '1117',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/57160970_1203718636474862_3796265633805500416_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/57160970_1203718636474862_3796265633805500416_n.jpg'
),
(int) 3 => array(
'id' => '1118',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/56702250_1203718229808236_102289331963559936_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/56702250_1203718229808236_102289331963559936_n.jpg'
),
(int) 4 => array(
'id' => '1119',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/56649379_1203718119808247_2593548299843665920_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/56649379_1203718119808247_2593548299843665920_n.jpg'
),
(int) 5 => array(
'id' => '1120',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/57213863_1203718023141590_3989267771732000768_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/57213863_1203718023141590_3989267771732000768_n.jpg'
),
(int) 6 => array(
'id' => '1121',
'ref' => 'Page',
'ref_id' => '274',
'type' => 'pic',
'file' => '/img/uploads/56825508_1203718493141543_212438342409650176_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/56825508_1203718493141543_212438342409650176_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