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 = 'coupe-de-la-marche-verte-sur-le-parcours-de-mohammedia-le-13-novembre-2021'
$p = array(
'Page' => array(
'id' => '479',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'COUPE DE LA MARCHE VERTE SUR LE PARCOURS DE MOHAMMEDIA LE 13 NOVEMBRE 2021',
'slug' => 'coupe-de-la-marche-verte-sur-le-parcours-de-mohammedia-le-13-novembre-2021',
'date_page' => '2021-11-13',
'date_page_end' => '2021-11-13',
'terrain_competition' => 'Mohammedia',
'type_competition' => 'equipe',
'tag' => 'adultes',
'description' => '',
'content' => '<p>La commission sportive du RGAM est heureuse de vous annoncer l'organisation de la compétition { <strong>Coupe de la Marche Verte</strong> } le <strong>Samedi 13 Novembre 2021</strong> sur le parcours de Mohammedia.<br />
Formule de jeu : Scramble à 2 joueurs<br />
Inscrivez-vous en ligne en cliquant sur le lien : http://rgam.ma/coupe-de-la-marche-verte-sur-le-parcours-de-mohammedia-le-13-novembre-2021<br />
Ou en contactant <strong>noura au noura.rgm@gmail.com</strong></p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '1',
'publish_resultat' => '1',
'resultat' => '',
'position' => '0',
'media_id' => '1806',
'view_name' => '',
'created' => '2021-11-08 14:47:01',
'modified' => '2021-11-25 10:04:51',
'thumb' => '/img/uploads/MARCHE.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1806',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/MARCHE.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/MARCHE.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1806',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/MARCHE.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/MARCHE.jpg'
),
(int) 1 => array(
'id' => '1812',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/257861815_1997205093792875_2483718134235561004_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/257861815_1997205093792875_2483718134235561004_n.jpg'
),
(int) 2 => array(
'id' => '1813',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/257928117_1997204987126219_3201822720534666755_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/257928117_1997204987126219_3201822720534666755_n.jpg'
),
(int) 3 => array(
'id' => '1814',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/257939359_1997205207126197_3066195682253331635_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/257939359_1997205207126197_3066195682253331635_n.jpg'
),
(int) 4 => array(
'id' => '1815',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/257968612_1997205137126204_5493634972223814689_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/257968612_1997205137126204_5493634972223814689_n.jpg'
),
(int) 5 => array(
'id' => '1816',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/258196244_1997205027126215_3336838986335718140_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/258196244_1997205027126215_3336838986335718140_n.jpg'
),
(int) 6 => array(
'id' => '1817',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/258238510_1997205520459499_1609434609778362700_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/258238510_1997205520459499_1609434609778362700_n.jpg'
),
(int) 7 => array(
'id' => '1818',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/258423535_1997205367126181_1897128741563478377_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/258423535_1997205367126181_1897128741563478377_n.jpg'
),
(int) 8 => array(
'id' => '1819',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pic',
'file' => '/img/uploads/258538349_1997205283792856_8917306145098267644_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/258538349_1997205283792856_8917306145098267644_n.jpg'
)
),
'Prive' => array(),
'Depart' => array(
(int) 0 => array(
'id' => '1809',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pdf',
'file' => '/img/uploads/FEUILLE_DEPART_CLASSIQUE-2.pdf',
'name' => '',
'nature' => 'depart',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Resultat' => array(
(int) 0 => array(
'id' => '1810',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pdf',
'file' => '/img/uploads/RESULTAT_NET.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 1 => array(
'id' => '1811',
'ref' => 'Page',
'ref_id' => '479',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT-1.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Partie' => array(
(int) 0 => array(
'id' => '446',
'tee' => '1',
'heure_depart' => '11:40:00',
'competition_id' => '479',
'created' => '2021-11-12 11:31:13',
'modified' => '2021-11-12 11:31:13',
'User' => array(
[maximum depth reached]
)
)
)
)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