小弟我的THINKPHP项目: SUBMENU_CONFIG = {$menu}, 有语法异常

WBOY
Release: 2016-06-13 12:07:08
Original
944 people have browsed it

我的THINKPHP项目: SUBMENU_CONFIG = {$menu}, 有语法错误

<br />\manager\Tpl\Home\Index\main.html<br />  SUBMENU_CONFIG = {$menu},  第111行有语法错误<br />
Copy after login


很久没用PHP,生疏了。
请问各位GGJJDDMM,
以上模版代码中的 {$menu}是什么意思?
$menu在这个文件的上下文中都没有出现,
那这个语法错误怎么解决呢?
如果解决了,我的后台菜单就能正常显示出来了,谢谢!
------解决思路----------------------
该模板应在 manager\Lib\Home\Action\IndexAction.class.php 的 main 方法中被调用
由于模板名与方法名相同,所以模板名可缺省
这就是你找不到 “main.html” 的原因
------解决思路----------------------
{$menu}

应该是你控制设置的一个变量值,类似
$menu = 'value';
$this->assign('menu',$menu);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!