Laravel模版中变量未定义 直接崩溃,但是ThinkPHP模版中变量未定义就可以正常执行

WBOY
Release: 2016-06-06 20:26:16
Original
1495 people have browsed it

虽然ThinkPHP里面的调试DEBUG输出错误,但是一点都不影响。

Laravel直接崩溃,有什么好办法呢?我也不想定义错误,也不想isset

回复内容:

虽然ThinkPHP里面的调试DEBUG输出错误,但是一点都不影响。

Laravel直接崩溃,有什么好办法呢?我也不想定义错误,也不想isset

大概你是想要这个吧?

<code>@yield('title','默认标题')</code>
Copy after login

去View下看看render中有没有try catch,找到对应的Exception,看看能不能在初始化时候替换。 isset 是正途。

Related labels:
php
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