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 = '1ère-etape-du-007-golf-tour-au-rgam-mohammedia-le-samedi-01-mai-2021'
$p = array(
'Page' => array(
'id' => '439',
'domain' => 'casablanca',
'menu_id' => '4',
'submenu_id' => null,
'type' => '',
'name' => '1ère ETAPE DU 007 GOLF TOUR AU RGAM MOHAMMEDIA LE SAMEDI 01 MAI 2021',
'slug' => '1ère-etape-du-007-golf-tour-au-rgam-mohammedia-le-samedi-01-mai-2021',
'date_page' => '2021-05-01',
'date_page_end' => '2021-05-19',
'terrain_competition' => 'Mohammedia',
'type_competition' => 'individuelle',
'tag' => 'adultes',
'description' => '',
'content' => '',
'a_la_une' => '0',
'evenement_type_paiement' => '',
'publish_depart' => '1',
'publish_resultat' => '1',
'resultat' => '',
'position' => '0',
'media_id' => '1675',
'view_name' => '',
'created' => '2021-04-27 15:24:44',
'modified' => '2021-05-21 11:46:29',
'thumb' => '/img/uploads/007_GOLF_TOUR_a_16_50_11.png'
),
'Menu' => array(
'id' => '4',
'domain' => 'casablanca',
'name' => 'COMPÉTITIONS',
'color' => '',
'link' => '',
'type' => 'header'
),
'Thumb' => array(
'id' => '1675',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_50_11.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_50_11.png'
),
'Gallery' => array(
(int) 0 => array(
'id' => '1661',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_43_34.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_43_34.png'
),
(int) 1 => array(
'id' => '1662',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_45_15.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_45_15.png'
),
(int) 2 => array(
'id' => '1663',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_47_23_1.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_47_23_1.png'
),
(int) 3 => array(
'id' => '1664',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_45_42.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_45_42.png'
),
(int) 4 => array(
'id' => '1665',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_42_46.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_42_46.png'
),
(int) 5 => array(
'id' => '1666',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_47_23.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_47_23.png'
),
(int) 6 => array(
'id' => '1667',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_47_09.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_47_09.png'
),
(int) 7 => array(
'id' => '1668',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_48_04.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_48_04.png'
),
(int) 8 => array(
'id' => '1669',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_48_42.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_48_42.png'
),
(int) 9 => array(
'id' => '1670',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_48_58.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_48_58.png'
),
(int) 10 => array(
'id' => '1671',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_49_14.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_49_14.png'
),
(int) 11 => array(
'id' => '1672',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_51_40.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_51_40.png'
),
(int) 12 => array(
'id' => '1673',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_49_50.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_49_50.png'
),
(int) 13 => array(
'id' => '1674',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_52_07.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_52_07.png'
),
(int) 14 => array(
'id' => '1675',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_50_11.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_50_11.png'
),
(int) 15 => array(
'id' => '1677',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_51_18.png',
'name' => '',
'nature' => 'gallery',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_51_18.png'
)
),
'Prive' => array(
(int) 0 => array(
'id' => '1676',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pic',
'file' => '/img/uploads/007_GOLF_TOUR_a_16_51_07.png',
'name' => '',
'nature' => 'prive',
'competition' => '0',
'position' => '0',
'icon' => '/img/uploads/007_GOLF_TOUR_a_16_51_07.png'
)
),
'Depart' => array(
(int) 0 => array(
'id' => '1654',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/2021_05_01_T1_DEPARTS_HORAIRES.pdf',
'name' => '',
'nature' => 'depart',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Resultat' => array(
(int) 0 => array(
'id' => '1655',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_2EME_SERIE_MIXTE.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 1 => array(
'id' => '1656',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_3EME_SERIE_MIXTE.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 2 => array(
'id' => '1657',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_BRUT_1ER_TOUR_SERIE_ELITE.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 3 => array(
'id' => '1658',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_2EME_SERIE_MIXTE.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 4 => array(
'id' => '1659',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_3EME_SERIE_MIXTE.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
),
(int) 5 => array(
'id' => '1660',
'ref' => 'Page',
'ref_id' => '439',
'type' => 'pdf',
'file' => '/img/uploads/RESULTATS_NET_1ER_TOUR_SERIE_ELITE.pdf',
'name' => '',
'nature' => 'resultat',
'competition' => '1',
'position' => '0',
'icon' => 'Media.pdf.png'
)
),
'Partie' => array(
(int) 0 => array(
'id' => '441',
'tee' => '1',
'heure_depart' => '13:30:00',
'competition_id' => '439',
'created' => '2021-04-30 12:16:33',
'modified' => '2021-04-30 12:16:33',
'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