异常处理程序:带隐式控制器的未定义索引

时间:2015-10-21 16:44:32

标签: laravel laravel-4 laravel-routing

我有Implicit Controller nammed MailingsController:

class MailingsController extends BaseController {

    public function __construct() {
        $this->beforeFilter('csrf', array('on' => 'post'));
        $lng = Config::get('app.locale');
        setlocale(LC_TIME, $lng ."_". strtoupper($lng));
    }

    public function getEmails() {
        die('hi');
    }

}

路线:

Route::controller('mailings', 'MailingsController');

观点:

<a href="{{Config::get('app.locale')}}/mailings/emails" > ... </a>

当我点击一个balise时,我得到了回应这个错误:

Error in exception handler: Undefined index: path (View: C:\wamp\www\tst\app\views\errors\404
.blade.php) in C:\wamp\www\tst\app\library\CustomUrlGenerator.php:76

0 个答案:

没有答案