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-du-dimanche-26-mars-2017-au-royal-golf-mohammedia'
$p = array(
'Page' => array(
'id' => '76',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'MEDAILLE MENSUELLE DU DIMANCHE 26 MARS 2017 AU ROYAL GOLF MOHAMMEDIA',
'slug' => 'medaille-mensuelle-du-dimanche-26-mars-2017-au-royal-golf-mohammedia',
'date_page' => '2017-03-26',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '<h2 data-fontsize="18" data-lineheight="27">MEDAILLE MENSUELLE DU DIMANCHE 26 MARS 2017 AU ROYAL GOLF MOHAMMEDIA</h2>
<p><em>Résultats</em></p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '279',
'view_name' => '',
'created' => '2018-06-07 15:49:47',
'modified' => '2018-06-07 15:52:11',
'thumb' => '/img/uploads/32218465_m.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '279',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/32218465_m.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/32218465_m.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '279',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/32218465_m.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/32218465_m.jpg'
),
(int) 1 => array(
'id' => '280',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/11_3.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/11_3.png'
),
(int) 2 => array(
'id' => '281',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/11_4.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/11_4.png'
),
(int) 3 => array(
'id' => '282',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/11_5.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/11_5.png'
),
(int) 4 => array(
'id' => '283',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/11_6.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/11_6.png'
),
(int) 5 => array(
'id' => '284',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/11_1.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/11_1.png'
),
(int) 6 => array(
'id' => '285',
'ref' => 'Page',
'ref_id' => '76',
'type' => 'pic',
'file' => '/img/uploads/11_2.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/11_2.png'
)
),
'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