1

制作简单的控制器:

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,

4

1 回答 1

1

添加这个:

 ini_set("display_errors", true);
 error_reporting(E_ALL);
于 2013-10-25T07:31:38.270 回答