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 = 'tournois-des-ambassadeurs-samedi-20-octobre-au-rgam-site-de-mohammedia'
$p = array(
'Page' => array(
'id' => '203',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'TOURNOIS DES AMBASSADEURS SAMEDI 20 OCTOBRE AU RGAM SITE DE MOHAMMEDIA',
'slug' => 'tournois-des-ambassadeurs-samedi-20-octobre-au-rgam-site-de-mohammedia',
'date_page' => '2018-10-20',
'date_page_end' => '2018-10-20',
'terrain_competition' => '',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '<p><em>Le corps diplomatique au Maroc a choisi pour organiser son tournoi annuel « Les Ambassadeurs » le parcours de Mohammedia. Cette manifestation a connu un grand succès à la satisfaction des participants qui n ont pas manqué de souligner la très bonne qualité du parcours et la parfaite organisation de la compétition.</em></p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '785',
'view_name' => '',
'created' => '2018-10-25 15:37:42',
'modified' => '2018-11-08 11:07:06',
'thumb' => '/img/uploads/IMG_20181023_WA0044.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '785',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/IMG_20181023_WA0044.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/IMG_20181023_WA0044.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '775',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/1-9.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/1-9.jpg'
),
(int) 1 => array(
'id' => '776',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/2-7.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/2-7.jpg'
),
(int) 2 => array(
'id' => '777',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/3-7.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/3-7.jpg'
),
(int) 3 => array(
'id' => '778',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/4-4.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/4-4.jpg'
),
(int) 4 => array(
'id' => '779',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/5-6.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/5-6.jpg'
),
(int) 5 => array(
'id' => '780',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/6-6.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/6-6.jpg'
),
(int) 6 => array(
'id' => '781',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/7-5.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/7-5.jpg'
),
(int) 7 => array(
'id' => '782',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/8-5.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/8-5.jpg'
),
(int) 8 => array(
'id' => '783',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/9-4.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/9-4.jpg'
),
(int) 9 => array(
'id' => '784',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/IMG_20181023_WA0042.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/IMG_20181023_WA0042.jpg'
),
(int) 10 => array(
'id' => '785',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/IMG_20181023_WA0044.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/IMG_20181023_WA0044.jpg'
),
(int) 11 => array(
'id' => '786',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/IMG_20181023_WA0040.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/IMG_20181023_WA0040.jpg'
),
(int) 12 => array(
'id' => '787',
'ref' => 'Page',
'ref_id' => '203',
'type' => 'pic',
'file' => '/img/uploads/IMG_20181023_WA0060.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/IMG_20181023_WA0060.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