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 = 'diner-et-spectacle-le-vendredi-16-decembre-2016'
$p = array(
'Page' => array(
'id' => '153',
'domain' => 'casablanca',
'menu_id' => '5',
'submenu_id' => null,
'type' => '',
'name' => 'DINER ET SPECTACLE LE VENDREDI 16 DECEMBRE 2016',
'slug' => 'diner-et-spectacle-le-vendredi-16-decembre-2016',
'date_page' => '2016-12-16',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => '',
'tag' => 'animations',
'description' => '',
'content' => '<h2 data-fontsize="18" data-lineheight="27">DINER ET SPECTACLE LE VENDREDI 16 DECEMBRE 2016</h2>
<p>Diner et Spectacle avec TRIO NOSTAZIK & La chanteuse DANIELLA à partir de 20h00.</p>
<p>Réservations auprès du secrétariat.</p>
<p>Prix : 300 Dh</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '557',
'view_name' => '',
'created' => '2018-06-08 15:46:51',
'modified' => '2018-06-08 15:47:09',
'thumb' => '/img/uploads/Atelier_Gourmand.png'
),
'Menu' => array(
'id' => '5',
'domain' => 'casablanca',
'name' => 'EVÉNEMENTS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '557',
'ref' => 'Page',
'ref_id' => '153',
'type' => 'pic',
'file' => '/img/uploads/Atelier_Gourmand.png',
'name' => '',
'nature' => '',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Atelier_Gourmand.png'
),
'Gallery' => array(),
'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