Home > Backend Development > PHP Tutorial > ThinkPHP框架 继续求解答。

ThinkPHP框架 继续求解答。

WBOY
Release: 2016-06-20 12:36:01
Original
800 people have browsed it

ThinkPHP3.2中的{$message}获取的为空 -   error(参数1)的这个值 获取不到 为什么呀 急求解答谢



  是为何呀







回复讨论(解决方案)

你先在php文件里打印$message,看看是php的问题还是前端的问题

看看控制器的index方法里,有没有assign变量,如果有,再看看$message有没有值,有的话,再看是不是布尔值

楼上都是正确的

找到error()方法,看看assign到前台的变量名是什么,字面上理解,msgTitle对应的应该是msgContent而不是message

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