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 = 'retransmission-coupe-du-monde-russie-a-anfa'
$p = array(
'Page' => array(
'id' => '172',
'domain' => 'casablanca',
'menu_id' => '3',
'submenu_id' => null,
'type' => '',
'name' => 'RETRANSMISSION COUPE DU MONDE RUSSIE A ANFA',
'slug' => 'retransmission-coupe-du-monde-russie-a-anfa',
'date_page' => '2018-06-20',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => '',
'description' => '',
'content' => '<h6 data-ft="{"tn":"C"}"> </h6>
<h3 data-ft="{"tn":"C"}"><span style="font-family:Arial,Helvetica,sans-serif;">Superbe match retransmis à anfa avec une foule de supporters qui ont vibré comme s’ils étaient en terrain ! </span></h3>
<h3><span style="font-family:Arial,Helvetica,sans-serif;">Fiers de notre équipe ! Fiers de notre pays<img alt="" height="16" role="presentation" src="https://static.xx.fbcdn.net/images/emoji.php/v9/f7a/1/16/1f44f_1f3fc.png" width="16" /><img alt="yes" height="23" src="http://rgam.ma/vendor_admin/ckeditor/plugins/smiley/images/thumbs_up.png" title="yes" width="23" /></span></h3>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '607',
'view_name' => '',
'created' => '2018-06-21 17:05:47',
'modified' => '2018-07-06 09:29:51',
'thumb' => '/img/uploads/DSC_2822.jpg'
),
'Menu' => array(
'id' => '3',
'domain' => 'casablanca',
'name' => 'LA VIE DU CLUB',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '607',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2822.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '2',
'icon' => '/img/uploads/DSC_2822.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '606',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2821.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '4',
'icon' => '/img/uploads/DSC_2821.jpg'
),
(int) 1 => array(
'id' => '607',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2822.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '2',
'icon' => '/img/uploads/DSC_2822.jpg'
),
(int) 2 => array(
'id' => '608',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2823.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '5',
'icon' => '/img/uploads/DSC_2823.jpg'
),
(int) 3 => array(
'id' => '609',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2824.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '6',
'icon' => '/img/uploads/DSC_2824.jpg'
),
(int) 4 => array(
'id' => '610',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2826.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '7',
'icon' => '/img/uploads/DSC_2826.jpg'
),
(int) 5 => array(
'id' => '611',
'ref' => 'Page',
'ref_id' => '172',
'type' => 'pic',
'file' => '/img/uploads/DSC_2832.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '8',
'icon' => '/img/uploads/DSC_2832.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