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-de-l'ecole-de-golf--saison-2018-2019'
$p = array(
'Page' => array(
'id' => '191',
'domain' => 'casablanca',
'menu_id' => '3',
'submenu_id' => null,
'type' => '',
'name' => 'REPRISE DE L'ECOLE DE GOLF SAISON 2018-2019',
'slug' => 'reprise-de-l'ecole-de-golf--saison-2018-2019',
'date_page' => '2018-10-01',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => '',
'description' => '',
'content' => '<p><em>L’Ecole de Golf a repris son activité sur les deux sites au mois d’Octobre. Un suivi personnalisé et une nouvelle méthode pédagogique ont été mis en place pour cette nouvelle saison avec l’octroi d’un nouveau matériel mis à la disposition de nos pros. Fidèle à ses engagements sociaux, le RGAM prend en charge 10 enfants de l’Association Bab Rayan sur le site d’Anfa en plus des 90 élèves pris entièrement en charge à Mohammedia. </em></p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '731',
'view_name' => '',
'created' => '2018-10-01 10:19:38',
'modified' => '2018-11-08 11:15:14',
'thumb' => '/img/uploads/DSC_1016.jpg'
),
'Menu' => array(
'id' => '3',
'domain' => 'casablanca',
'name' => 'LA VIE DU CLUB',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '731',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1016.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1016.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '731',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1016.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1016.jpg'
),
(int) 1 => array(
'id' => '732',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1018.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1018.jpg'
),
(int) 2 => array(
'id' => '733',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1039.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1039.jpg'
),
(int) 3 => array(
'id' => '734',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1099.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1099.jpg'
),
(int) 4 => array(
'id' => '735',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1110.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1110.jpg'
),
(int) 5 => array(
'id' => '736',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1051.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1051.jpg'
),
(int) 6 => array(
'id' => '737',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1019.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1019.jpg'
),
(int) 7 => array(
'id' => '738',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1033.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1033.jpg'
),
(int) 8 => array(
'id' => '739',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/DSC_1040.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/DSC_1040.jpg'
),
(int) 9 => array(
'id' => '820',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/42513360_1076092665904127_9198832947367510016_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/42513360_1076092665904127_9198832947367510016_n.jpg'
),
(int) 10 => array(
'id' => '821',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/42529440_1076092612570799_2015559037399072768_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/42529440_1076092612570799_2015559037399072768_n.jpg'
),
(int) 11 => array(
'id' => '822',
'ref' => 'Page',
'ref_id' => '191',
'type' => 'pic',
'file' => '/img/uploads/42552778_1076092599237467_447204407315005440_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/42552778_1076092599237467_447204407315005440_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