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 = 'menu-du-nouvel-an-'
$p = array(
'Page' => array(
'id' => '490',
'domain' => 'casablanca',
'menu_id' => '3',
'submenu_id' => null,
'type' => null,
'name' => 'MENU DU NOUVEL AN ',
'slug' => 'menu-du-nouvel-an-',
'date_page' => '2021-12-31',
'date_page_end' => null,
'terrain_competition' => null,
'type_competition' => null,
'tag' => null,
'description' => '',
'content' => '<p>Chers membres, <br />
Pour le nouvel an le restaurant du site d'Anfa propose un dîner gastronomique qui sera servi de 20h00 à 23h00.</p>
<p><strong><u>ENTRÉES</u></strong></p>
<p><strong>Mise en bouche </strong></p>
<p><strong>Tartare d’asperges</strong></p>
<p><strong>Avocat aux crabes </strong></p>
<p><strong><u>PLATS</u></strong></p>
<p><strong>Filet de loup bar beurre blanc aux huitres gratinées </strong></p>
<p><strong>Sorbet mangue </strong></p>
<p><strong>Tournedos Rossini aux légumes grillés </strong></p>
<p><strong><u>DESSERT</u></strong></p>
<p><strong>Buche du nouvel an </strong></p>
<p><strong>Eau plate ou gazeuse / Café ou Thé</strong></p>
<p><strong>Prix : 350 Dhs – Bonne année 2022</strong></p>
',
'a_la_une' => '0',
'evenement_type_paiement' => null,
'publish_depart' => null,
'publish_resultat' => null,
'resultat' => null,
'position' => null,
'media_id' => '1830',
'view_name' => '',
'created' => '2021-12-31 10:34:41',
'modified' => '2022-01-03 09:44:12',
'thumb' => '/img/uploads/Bonne_anneee_2022.jpg'
),
'Menu' => array(
'id' => '3',
'domain' => 'casablanca',
'name' => 'LA VIE DU CLUB',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1830',
'ref' => 'Page',
'ref_id' => '490',
'type' => 'pic',
'file' => '/img/uploads/Bonne_anneee_2022.jpg',
'name' => null,
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Bonne_anneee_2022.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1830',
'ref' => 'Page',
'ref_id' => '490',
'type' => 'pic',
'file' => '/img/uploads/Bonne_anneee_2022.jpg',
'name' => null,
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Bonne_anneee_2022.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