Code Context }
$projets = $this->Projet->find('all');
$this->set(compact('albums','projet'));
$id = '3'
$projet = 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()
)
$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::details() - APP/Controller/ProjetsController.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 117