Bonjour,

J'ai le code php suivant qui provoque une erreur de syntaxe dans la console.
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
<script>
	var PickerDays		= <?= json_encode(JS_CAL_DAYS); ?>,
		PickerMonthes	= <?= json_encode(JS_CAL_DAYS); ?>;
</script>
L'explorateur DOM affiche ceci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script>
	var PickerDays		= <br />
<font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Use of undefined constant JS_CAL_DAYS - assumed 'JS_CAL_DAYS' in C:\wamp64\www\proginet\appSirap\admin\editAbo.php on line <i>462</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0000</td><td bgcolor='#eeeeec' align='right'>420648</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\proginet\appSirap\admin\editAbo.php' bgcolor='#eeeeec'>...\editAbo.php<b>:</b>0</td></tr>
</table></font>
"JS_CAL_DAYS",
		PickerMonthes	= <br />
<font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Use of undefined constant JS_CAL_DAYS - assumed 'JS_CAL_DAYS' in C:\wamp64\www\proginet\appSirap\admin\editAbo.php on line <i>463</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0000</td><td bgcolor='#eeeeec' align='right'>420648</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\proginet\appSirap\admin\editAbo.php' bgcolor='#eeeeec'>...\editAbo.php<b>:</b>0</td></tr>
</table></font>
"JS_CAL_DAYS";
</script>
Que vient faire ce <br /> ici? Comment remédier à cette erreur?

EDIT: J'ai trouvé, mes constantes php n'étaient pas lues dans la page courante (fichier php)