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 = 'presentation-de-lequipe-elite-du-rgam-pour-la-coupe-du-trone'
$p = array(
'Page' => array(
'id' => '101',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'PRÉSENTATION DE L’ÉQUIPE ÉLITE DU RGAM POUR LA COUPE DU TRÔNE',
'slug' => 'presentation-de-lequipe-elite-du-rgam-pour-la-coupe-du-trone',
'date_page' => '2016-06-27',
'date_page_end' => null,
'terrain_competition' => '',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '<h2 data-fontsize="18" data-lineheight="27">PRÉSENTATION DE L’ÉQUIPE ÉLITE DU RGAM POUR LA COUPE DU TRÔNE</h2>
<p class="video-container"><iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/SzdQzqrEGRY" width="560"></iframe></p>
<style type="text/css">
.video-container {
position: relative!important;
padding-bottom: 56.25%!important;
padding-top: 35px!important;
height: 0!important;
overflow: hidden!important;
}
.video-container iframe {
position: absolute!important;
top:0!important;
left: 0!important;
width: 100%!important;
height: 100%!important;
}
</style>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '429',
'view_name' => '',
'created' => '2018-06-08 09:52:06',
'modified' => '2018-06-08 14:52:27',
'thumb' => '/img/uploads/13522046_596079147238817_4832663920256046672_n.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '429',
'ref' => 'Page',
'ref_id' => '101',
'type' => 'pic',
'file' => '/img/uploads/13522046_596079147238817_4832663920256046672_n.jpg',
'name' => '',
'nature' => '',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/13522046_596079147238817_4832663920256046672_n.jpg'
),
'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