My THINKPHP project: SUBMENU_CONFIG = {$ menu}, with a syntax error

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.