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 = 'medaille-mensuelle-dimanche-08-decembre-sur-le-parcours-de-mohammedia'
$p = array(
'Page' => array(
'id' => '363',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'MÉDAILLE MENSUELLE DIMANCHE 08 DÉCEMBRE SUR LE PARCOURS DE MOHAMMEDIA',
'slug' => 'medaille-mensuelle-dimanche-08-decembre-sur-le-parcours-de-mohammedia',
'date_page' => '2019-12-08',
'date_page_end' => '2019-12-08',
'terrain_competition' => 'Mohammedia',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '1',
'publish_resultat' => '1',
'resultat' => '',
'position' => '0',
'media_id' => '1390',
'view_name' => '',
'created' => '2019-12-04 15:57:53',
'modified' => '2019-12-09 08:49:23',
'thumb' => '/img/uploads/Golfcourse_58f7a10c3df78ca159473a81-1.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1390',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pic',
'file' => '/img/uploads/Golfcourse_58f7a10c3df78ca159473a81-1.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Golfcourse_58f7a10c3df78ca159473a81-1.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1390',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pic',
'file' => '/img/uploads/Golfcourse_58f7a10c3df78ca159473a81-1.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Golfcourse_58f7a10c3df78ca159473a81-1.jpg'
)
),
'Prive' => array(),
'Depart' => array(
(int) 0 => array(
'id' => '1393',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pdf',
'file' => '/img/uploads/LISTE_DES_DEPARTS_MEDAILLE_MENSUELLE.pdf',
'name' => '',
'nature' => 'depart',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Resultat' => array(
(int) 0 => array(
'id' => '1399',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_1ERE_SERIE_HOMMES.pdf',
'name' => 'Résultat net 1SH',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 1 => array(
'id' => '1400',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_2EME_SERIE_DAMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 2 => array(
'id' => '1401',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_2EME_SERIE_HOMMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 3 => array(
'id' => '1402',
'ref' => 'Page',
'ref_id' => '363',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_4EME_SERIE_HOMMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Partie' => array(
(int) 0 => array(
'id' => '220',
'tee' => '1',
'heure_depart' => '11:40:00',
'competition_id' => '363',
'created' => '2019-12-07 14:09:40',
'modified' => '2019-12-07 14:09:40',
'User' => array(
[maximum depth reached]
)
)
)
)
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