My THINKPHP project: SUBMENU_CONFIG {$ menu}, with a syntax error
\ Manager \ Tpl \ Home \ Index \ main.html SUBMENU_CONFIG = {$ menu}. there is a syntax error in row 111st.
PHP is useless for a long time.
May I ask GGJJDDMM,
What does {$ menu} in the template code above mean?
$ Menu does not appear in the context of this file,
How can this syntax error be solved?
If yes, my background menu will be displayed normally. thank you!
Reply to discussion (solution)
However, my entire site does not have any search results for main.html. Isn't this template referenced by any program? But not like it!
This template should be called in the main method of manager \ Lib \ Home \ Action \ IndexAction. class. php
Because the template name is the same as the method name, the template name can be the default
This is why you cannot find the external main.html.
{$ Menu}
It should be a variable value you set, similar
$ Menu = 'value ';
$ This-> assign ('menu ', $ menu );
I know that {$ menu} is a variable in the template,
But how can I debug and track this variable?
We found that define ('app _ debug', true) is set in the entry file );
Trace ($ menu, 'menu ', 'menu'); use this statement to trace,
But I don't know where to view the tracked information,
The following error log appears: \ manager \ Runtime \ Logs \ 14_09_24.log
However, "menu" cannot be found in 14_09_24.log. Is there no error message or is there a trace error message?
No. Yes, it should also track the value of $ menu!