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 = 'medaille-mensuelle-le-29-novembre-sur-le-parcours-de-mohammedia'
$p = array(
'Page' => array(
'id' => '417',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => 'MEDAILLE MENSUELLE LE 29 NOVEMBRE SUR LE PARCOURS DE MOHAMMEDIA',
'slug' => 'medaille-mensuelle-le-29-novembre-sur-le-parcours-de-mohammedia',
'date_page' => '2020-11-29',
'date_page_end' => '2020-11-29',
'terrain_competition' => 'Mohammedia',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '1',
'publish_resultat' => '0',
'resultat' => '',
'position' => '0',
'media_id' => '1525',
'view_name' => '',
'created' => '2020-12-02 11:03:57',
'modified' => '2020-12-09 10:23:31',
'thumb' => '/img/uploads/Medaille_mensuelle.jpg'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1525',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pic',
'file' => '/img/uploads/Medaille_mensuelle.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Medaille_mensuelle.jpg'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1525',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pic',
'file' => '/img/uploads/Medaille_mensuelle.jpg',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/Medaille_mensuelle.jpg'
)
),
'Prive' => array(),
'Depart' => array(
(int) 0 => array(
'id' => '1526',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'xlsx',
'file' => '/img/uploads/liste_des_departs.xlsx',
'name' => '',
'nature' => 'depart',
'competition' => '1',
'position' => '0',
'icon' => 'Media.xlsx.png'
)
),
'Resultat' => array(
(int) 0 => array(
'id' => '1536',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_4EME_SERIE_HOMMES-1.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 1 => array(
'id' => '1527',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_1ERE_SERIE_DAMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 2 => array(
'id' => '1528',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_1ERE_SERIE_HOMMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 3 => array(
'id' => '1529',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_2EME_SERIE_DAMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 4 => array(
'id' => '1530',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_2EME_SERIE_HOMMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 5 => array(
'id' => '1531',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_4EME_SERIE_HOMMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 6 => array(
'id' => '1532',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_1ERE_SERIE_DAMES.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 7 => array(
'id' => '1533',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_1ERE_SERIE_HOMMES-1.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 8 => array(
'id' => '1534',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_2EME_SERIE_DAMES-1.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 9 => array(
'id' => '1535',
'ref' => 'Page',
'ref_id' => '417',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_2EME_SERIE_HOMMES-1.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Partie' => array(
(int) 0 => array(
'id' => '390',
'tee' => '1',
'heure_depart' => '11:40:00',
'competition_id' => '417',
'created' => '2020-12-02 11:05:43',
'modified' => '2020-12-02 11:05:43',
'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