制作简单的控制器:
class TestController extends BaseController {
public function postTurnover() {
// error_reporting(-1); does not add more
echo 'post';
$formData = array('a');
//$utils = new Utilities\Utils; // if this is commented, script stops executing
// when calling $utils object, but not showing any errors
$formData['shops'] = $utils->franchisesShopsDropdown(1, 1);
die('aaa'); // not going even till there when calling non existing object
}
}
有人可以解释为什么没有错误吗?只显示单词'post'
默认安装,在 config/app.php 中有 'debug' => true,