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 = 'family-cup-dimanche-27-juin-sur-le-parcours-d'anfa'
$p = array(
'Page' => array(
'id' => '452',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'FAMILY CUP DIMANCHE 27 JUIN SUR LE PARCOURS D'ANFA',
'slug' => 'family-cup-dimanche-27-juin-sur-le-parcours-d'anfa',
'date_page' => '2021-06-27',
'date_page_end' => '2021-06-27',
'terrain_competition' => 'Anfa',
'type_competition' => 'equipe',
'tag' => 'adultes',
'description' => '',
'content' => '<p>Retour en images sur les meilleurs moments de la compétition Family Cup qui s'est déroulée ce Dimanche 27 Juin sur le Parcours d'Anfa.</p>
<p>Nous remercions tous les participants et félicitons les gagnants .</p>
<p>Un grand bravo au staff de l'école ainsi que l'ensemble des collaborateurs du site d'Anfa pour tous les efforts fournis !</p>
',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '0',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '1754',
'view_name' => '',
'created' => '2021-06-22 09:58:33',
'modified' => '2021-07-19 09:36:02',
'thumb' => '/img/uploads/207782050_1890139601166092_6950442076213820274_n.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1754',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/207782050_1890139601166092_6950442076213820274_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/207782050_1890139601166092_6950442076213820274_n.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1723',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/FAMILY_CUMP_JUIN_2021.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/FAMILY_CUMP_JUIN_2021.jpg'
),
(int) 1 => array(
'id' => '1742',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/204646456_1890140067832712_9014920260064034323_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/204646456_1890140067832712_9014920260064034323_n.jpg'
),
(int) 2 => array(
'id' => '1743',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/204937938_1890139031166149_1629351097818632735_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/204937938_1890139031166149_1629351097818632735_n.jpg'
),
(int) 3 => array(
'id' => '1744',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/205208874_1890140091166043_8141752308472628909_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/205208874_1890140091166043_8141752308472628909_n.jpg'
),
(int) 4 => array(
'id' => '1745',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/205755249_1890139084499477_3922112931971725798_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/205755249_1890139084499477_3922112931971725798_n.jpg'
),
(int) 5 => array(
'id' => '1746',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/206512973_1890139897832729_7777553894260056675_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/206512973_1890139897832729_7777553894260056675_n.jpg'
),
(int) 6 => array(
'id' => '1747',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/206894856_1890139841166068_6758780707533287673_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/206894856_1890139841166068_6758780707533287673_n.jpg'
),
(int) 7 => array(
'id' => '1748',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/206908832_1890139101166142_1094847232651205341_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/206908832_1890139101166142_1094847232651205341_n.jpg'
),
(int) 8 => array(
'id' => '1749',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/206908847_1890139187832800_8402231736177615511_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/206908847_1890139187832800_8402231736177615511_n.jpg'
),
(int) 9 => array(
'id' => '1750',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/207037280_1890139941166058_210621205689589170_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/207037280_1890139941166058_210621205689589170_n.jpg'
),
(int) 10 => array(
'id' => '1751',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/207485042_1890138997832819_8406565350545748905_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/207485042_1890138997832819_8406565350545748905_n.jpg'
),
(int) 11 => array(
'id' => '1752',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/207495351_1890139154499470_6222397760800544774_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/207495351_1890139154499470_6222397760800544774_n.jpg'
),
(int) 12 => array(
'id' => '1753',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/207628051_1890139617832757_2689476151010881501_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/207628051_1890139617832757_2689476151010881501_n.jpg'
),
(int) 13 => array(
'id' => '1754',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/207782050_1890139601166092_6950442076213820274_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/207782050_1890139601166092_6950442076213820274_n.jpg'
),
(int) 14 => array(
'id' => '1755',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/208259268_1890139221166130_9199114991325867563_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/208259268_1890139221166130_9199114991325867563_n.jpg'
),
(int) 15 => array(
'id' => '1756',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/208312779_1890139561166096_3943728545552359644_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/208312779_1890139561166096_3943728545552359644_n.jpg'
),
(int) 16 => array(
'id' => '1757',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/208425653_1890139061166146_735865234751516268_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/208425653_1890139061166146_735865234751516268_n.jpg'
),
(int) 17 => array(
'id' => '1758',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/208831028_1890139994499386_3033790301749771822_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/208831028_1890139994499386_3033790301749771822_n.jpg'
),
(int) 18 => array(
'id' => '1759',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/208936041_1890139821166070_4844167365353719146_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/208936041_1890139821166070_4844167365353719146_n.jpg'
),
(int) 19 => array(
'id' => '1760',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/209175943_1890139767832742_7026954353744458309_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/209175943_1890139767832742_7026954353744458309_n.jpg'
),
(int) 20 => array(
'id' => '1761',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/209462419_1890139291166123_5248186267978158806_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/209462419_1890139291166123_5248186267978158806_n.jpg'
),
(int) 21 => array(
'id' => '1762',
'ref' => 'Page',
'ref_id' => '452',
'type' => 'pic',
'file' => '/img/uploads/209965352_1890139251166127_7738438136892068546_n.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/209965352_1890139251166127_7738438136892068546_n.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