Code Context $i = 1;
while(!$photo_principale && $parent_reverse[$i]['Page']['parent_id'] != 0 && isset($parent_reverse[$i])){
$content_id = '16459'
$page = array(
'Content' => array(
'id' => '16459',
'page_id' => '1382',
'page_link_id' => '0',
'internal_link_eng' => '',
'external_link_eng' => '',
'secure_link_eng' => '',
'logo_menu' => '',
'couleur' => null,
'template' => '',
'photo' => '',
'credit_photo' => '',
'photo_secondaire' => '',
'photo_secondaire_scale' => false,
'photo_secondaire_height' => null,
'titre_eng' => '',
'menu_eng' => '',
'afficher_enfant_menu' => false,
'texte_eng' => '',
'position_mosaique' => '0',
'icone' => '',
'image_mosaique' => '',
'mosaique' => false,
'seo_slug_eng' => '',
'seo_title_eng' => '',
'seo_description_eng' => '',
'is_draft' => false,
'edited' => false,
'created' => '2017-08-21 09:39:18',
'modified' => '2020-12-15 00:05:04',
'titre' => 'Site municipalité',
'seo_slug' => 'site-municipalite',
'menu' => 'Site municipalité',
'texte' => '',
'seo_title' => 'Navigation municipalité',
'seo_description' => '',
'internal_link' => '',
'external_link' => '',
'secure_link' => ''
),
'Link' => array(
'id' => null,
'parent_id' => null,
'type_id' => null,
'path_fre' => null,
'path_eng' => null,
'notes' => null,
'cache' => null,
'ordre' => null,
'deletable' => null,
'publie' => null,
'created' => null,
'modified' => null
),
'Page' => array(
'id' => '1382',
'parent_id' => '0',
'type_id' => '0',
'path_fre' => '',
'path_eng' => '',
'notes' => '',
'cache' => false,
'ordre' => '25',
'deletable' => false,
'publie' => true,
'created' => '2017-08-21 09:39:18',
'modified' => '2025-01-07 14:37:46',
'Plugin' => array()
)
)
$parent = array(
(int) 0 => array(
'Page' => array(
'id' => '1382',
'parent_id' => '0',
'type_id' => '0',
'path_fre' => '',
'path_eng' => '',
'notes' => '',
'cache' => false,
'ordre' => '25',
'deletable' => false,
'publie' => true,
'created' => '2017-08-21 09:39:18',
'modified' => '2025-01-07 14:37:46'
),
'Content' => array(
'id' => '16459',
'page_id' => '1382',
'page_link_id' => '0',
'internal_link_eng' => '',
'internal_link_fre' => '',
'external_link_eng' => '',
'external_link_fre' => '',
'secure_link_eng' => '',
'secure_link_fre' => '',
'logo_menu' => '',
'couleur' => null,
'template' => '',
'photo' => '',
'credit_photo' => '',
'photo_secondaire' => '',
'photo_secondaire_scale' => false,
'photo_secondaire_height' => null,
'titre_fre' => 'Site municipalité',
'titre_eng' => '',
'menu_fre' => 'Site municipalité',
'menu_eng' => '',
'afficher_enfant_menu' => false,
'texte_fre' => '',
'texte_eng' => '',
'position_mosaique' => '0',
'icone' => '',
'image_mosaique' => '',
'mosaique' => false,
'seo_slug_fre' => 'site-municipalite',
'seo_slug_eng' => '',
'seo_title_fre' => 'Navigation municipalité',
'seo_title_eng' => '',
'seo_description_fre' => '',
'seo_description_eng' => '',
'is_draft' => false,
'edited' => false,
'created' => '2017-08-21 09:39:18',
'modified' => '2020-12-15 00:05:04'
),
'Brouillon' => array(
'id' => '16460',
'page_id' => '1382',
'page_link_id' => '0',
'internal_link_eng' => '',
'internal_link_fre' => '',
'external_link_eng' => '',
'external_link_fre' => '',
'secure_link_eng' => '',
'secure_link_fre' => '',
'logo_menu' => '',
'couleur' => null,
'template' => '',
'photo' => '',
'credit_photo' => '',
'photo_secondaire' => '',
'photo_secondaire_scale' => false,
'photo_secondaire_height' => null,
'titre_fre' => 'Site municipalité',
'titre_eng' => '',
'menu_fre' => 'Site municipalité',
'menu_eng' => '',
'afficher_enfant_menu' => false,
'texte_fre' => '',
'texte_eng' => '',
'position_mosaique' => '0',
'icone' => '',
'image_mosaique' => '',
'mosaique' => false,
'seo_slug_fre' => 'site-municipalite',
'seo_slug_eng' => '',
'seo_title_fre' => 'Navigation municipalité',
'seo_title_eng' => '',
'seo_description_fre' => '',
'seo_description_eng' => '',
'is_draft' => true,
'edited' => false,
'created' => '2017-08-21 09:39:18',
'modified' => '2020-12-15 00:05:04'
)
)
)
$photo_principale = ''
$parent_reverse = array(
(int) 0 => array(
'Page' => array(
'id' => '1382',
'parent_id' => '0',
'type_id' => '0',
'path_fre' => '',
'path_eng' => '',
'notes' => '',
'cache' => false,
'ordre' => '25',
'deletable' => false,
'publie' => true,
'created' => '2017-08-21 09:39:18',
'modified' => '2025-01-07 14:37:46'
),
'Content' => array(
'id' => '16459',
'page_id' => '1382',
'page_link_id' => '0',
'internal_link_eng' => '',
'internal_link_fre' => '',
'external_link_eng' => '',
'external_link_fre' => '',
'secure_link_eng' => '',
'secure_link_fre' => '',
'logo_menu' => '',
'couleur' => null,
'template' => '',
'photo' => '',
'credit_photo' => '',
'photo_secondaire' => '',
'photo_secondaire_scale' => false,
'photo_secondaire_height' => null,
'titre_fre' => 'Site municipalité',
'titre_eng' => '',
'menu_fre' => 'Site municipalité',
'menu_eng' => '',
'afficher_enfant_menu' => false,
'texte_fre' => '',
'texte_eng' => '',
'position_mosaique' => '0',
'icone' => '',
'image_mosaique' => '',
'mosaique' => false,
'seo_slug_fre' => 'site-municipalite',
'seo_slug_eng' => '',
'seo_title_fre' => 'Navigation municipalité',
'seo_title_eng' => '',
'seo_description_fre' => '',
'seo_description_eng' => '',
'is_draft' => false,
'edited' => false,
'created' => '2017-08-21 09:39:18',
'modified' => '2020-12-15 00:05:04'
),
'Brouillon' => array(
'id' => '16460',
'page_id' => '1382',
'page_link_id' => '0',
'internal_link_eng' => '',
'internal_link_fre' => '',
'external_link_eng' => '',
'external_link_fre' => '',
'secure_link_eng' => '',
'secure_link_fre' => '',
'logo_menu' => '',
'couleur' => null,
'template' => '',
'photo' => '',
'credit_photo' => '',
'photo_secondaire' => '',
'photo_secondaire_scale' => false,
'photo_secondaire_height' => null,
'titre_fre' => 'Site municipalité',
'titre_eng' => '',
'menu_fre' => 'Site municipalité',
'menu_eng' => '',
'afficher_enfant_menu' => false,
'texte_fre' => '',
'texte_eng' => '',
'position_mosaique' => '0',
'icone' => '',
'image_mosaique' => '',
'mosaique' => false,
'seo_slug_fre' => 'site-municipalite',
'seo_slug_eng' => '',
'seo_title_fre' => 'Navigation municipalité',
'seo_title_eng' => '',
'seo_description_fre' => '',
'seo_description_eng' => '',
'is_draft' => true,
'edited' => false,
'created' => '2017-08-21 09:39:18',
'modified' => '2020-12-15 00:05:04'
)
)
)
$i = (int) 1
Content::getPhotoPrincipal() - APP/Model/Content.php, line 49
PagesController::voir() - APP/Controller/PagesController.php, line 245
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - ROOT/webroot/index.php, line 115