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 = '5ème-etape-du-007-golf-tour-le-09-octobre-2021-a-mohammedia'
$p = array(
'Page' => array(
'id' => '468',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => '5ème ETAPE DU 007 GOLF TOUR LE 09 OCTOBRE 2021 A MOHAMMEDIA',
'slug' => '5ème-etape-du-007-golf-tour-le-09-octobre-2021-a-mohammedia',
'date_page' => '2021-10-09',
'date_page_end' => '2021-10-09',
'terrain_competition' => 'Mohammedia',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '<p>La commission sportive du RGAM est heureuse de vous annoncer l'organisation de la 5ème étape du 007 GOLF TOUR. Cette étape aura lieu le 09 octobre 2021 sur le Parcours de Mohammedia. Pour vous inscrire cliquez sur le lien : http://rgam.ma/5%C3%A8me-etape-du-007-golf-tour-le-09-octobre-2021-a-mohammedia Ou contactez noura : noura.rgm@gmail.com</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '1',
'publish_resultat' => '1',
'resultat' => '',
'position' => '0',
'media_id' => '1774',
'view_name' => '',
'created' => '2021-09-24 10:34:23',
'modified' => '2021-10-11 11:44:39',
'thumb' => '/img/uploads/OO7.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1774',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pic',
'file' => '/img/uploads/OO7.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/OO7.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1774',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pic',
'file' => '/img/uploads/OO7.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/OO7.jpg'
)
),
'Prive' => array(),
'Depart' => array(
(int) 0 => array(
'id' => '1777',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/2021_10_09_T1_DEPARTS_HORAIRES.pdf',
'name' => '',
'nature' => 'depart',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Resultat' => array(
(int) 0 => array(
'id' => '1778',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_1ERE_SERIE_MIXTE-2.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 1 => array(
'id' => '1779',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_2EME_SERIE_MIXTE-3.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 2 => array(
'id' => '1780',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_SERIE_ELITE_MIXTE-2.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 3 => array(
'id' => '1781',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_1ERE_SERIE_MIXTE-2.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 4 => array(
'id' => '1782',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_2EME_SERIE_MIXTE-3.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 5 => array(
'id' => '1783',
'ref' => 'Page',
'ref_id' => '468',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_SERIE_ELITE_MIXTE-2.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Partie' => array(
(int) 0 => array(
'id' => '445',
'tee' => '1',
'heure_depart' => '11:30:00',
'competition_id' => '468',
'created' => '2021-10-08 12:28:49',
'modified' => '2021-10-08 12:28:49',
'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