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 = 'reprise-ecole-de-golf-rgam-saison-2021-2022'
$p = array(
'Page' => array(
'id' => '463',
'domain' => 'casablanca',
'menu_id' => '3',
'submenu_id' => null,
'type' => '',
'name' => 'REPRISE ECOLE DE GOLF RGAM SAISON 2021-2022',
'slug' => 'reprise-ecole-de-golf-rgam-saison-2021-2022',
'date_page' => '2021-10-02',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => '',
'description' => '',
'content' => '<p>Le RGAM est heureux de vous annoncer la reprise de l'activité de l'Ecole de Golf <img alt="⛳" height="16" referrerpolicy="origin-when-cross-origin" src="https://static.xx.fbcdn.net/images/emoji.php/v9/t1/1.5/16/26f3.png" width="16" /> le 02 Octobre 2021. Les inscriptions pour la saison 2021 2022 sont ouvertes auprès de Sabah à Anfa et Noura à Mohammedia.</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '1769',
'view_name' => '',
'created' => '2021-09-14 10:31:52',
'modified' => '2021-10-16 11:17:22',
'thumb' => '/img/uploads/241758547_1947653658748019_2055678983245922751_n.jpg'
),
'Menu' => array(
'id' => '3',
'domain' => 'casablanca',
'name' => 'LA VIE DU CLUB',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1769',
'ref' => 'Page',
'ref_id' => '463',
'type' => 'pic',
'file' => '/img/uploads/241758547_1947653658748019_2055678983245922751_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/241758547_1947653658748019_2055678983245922751_n.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1769',
'ref' => 'Page',
'ref_id' => '463',
'type' => 'pic',
'file' => '/img/uploads/241758547_1947653658748019_2055678983245922751_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/241758547_1947653658748019_2055678983245922751_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