Code Context //$contacts=$this->Contact->find('first');
$this->set(compact('projets','projet','contacts'));
$id = null
$projet = array(
'Projet' => array(
'id' => '1',
'nom_fr' => 'Projet2',
'nom_ara' => 'Projet2',
'nom_en' => 'Projet2',
'image' => 'IMG-20221019-WA0000.jpg',
'date_ajout' => '2022-10-02',
'media_id' => '0'
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'file' => null,
'position' => null
),
'Media' => array(
(int) 557 => array(
'id' => '557',
'ref' => 'Projet',
'ref_id' => '1',
'file' => '/img/uploads/projets/2022/10/IMG_20221019_WA0000.jpg',
'position' => '0',
'type' => 'pic',
'icon' => '/img/uploads/projets/2022/10/IMG_20221019_WA0000.jpg'
),
(int) 558 => array(
'id' => '558',
'ref' => 'Projet',
'ref_id' => '1',
'file' => '/img/uploads/projets/2022/10/IMG_20221019_WA0000-1.jpg',
'position' => '0',
'type' => 'pic',
'icon' => '/img/uploads/projets/2022/10/IMG_20221019_WA0000-1.jpg'
)
)
)
$projets = array(
(int) 0 => array(
'Projet' => array(
'id' => '1',
'nom_fr' => 'Projet2',
'nom_ara' => 'Projet2',
'nom_en' => 'Projet2',
'image' => 'IMG-20221019-WA0000.jpg',
'date_ajout' => '2022-10-02',
'media_id' => '0'
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'file' => null,
'position' => null
),
'Media' => array(
(int) 557 => array(
[maximum depth reached]
),
(int) 558 => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Projet' => array(
'id' => '2',
'nom_fr' => 'Projet1',
'nom_ara' => 'Projet1',
'nom_en' => 'Projet1',
'image' => 'photo-1604312292.png',
'date_ajout' => '2022-10-02',
'media_id' => '0'
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'file' => null,
'position' => null
),
'Media' => array()
),
(int) 2 => array(
'Projet' => array(
'id' => '3',
'nom_fr' => 'Projet3',
'nom_ara' => 'Projet3',
'nom_en' => 'Projet3',
'image' => 'photo-1604312323.png',
'date_ajout' => '2022-10-02',
'media_id' => '0'
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'file' => null,
'position' => null
),
'Media' => array()
),
(int) 3 => array(
'Projet' => array(
'id' => '4',
'nom_fr' => 'Projet4',
'nom_ara' => 'Projet4',
'nom_en' => 'Projet4',
'image' => 'photo-1604312373.png',
'date_ajout' => '2022-10-02',
'media_id' => '0'
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'file' => null,
'position' => null
),
'Media' => array()
),
(int) 4 => array(
'Projet' => array(
'id' => '5',
'nom_fr' => 'Projet5',
'nom_ara' => 'Projet5',
'nom_en' => 'Projet5',
'image' => 'photo-1604312409.png',
'date_ajout' => '2022-10-02',
'media_id' => '0'
),
'Thumb' => array(
'id' => null,
'ref' => null,
'ref_id' => null,
'file' => null,
'position' => null
),
'Media' => array()
)
)
compact - [internal], line ??
ProjetsController::index() - APP/Controller/ProjetsController.php, line 35
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 117