Question

I have a little problem. When I connect to the site: mysite.com/uebersicht, I get this error:

Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

Controller method not found.

My Routes:

Route::controller('/', 'HomeController');
Route::controller('uebersicht', 'UebersichtController');

UebersichtController

<?php

class UebersichtController extends BaseController {
    public $layout = 'master';

    public function getIndex() {
        $this->layout->content = View::make('uebersicht.index');
        $this->layout->title = 'Server &Uuml;bersicht';
    }

}

The HomeController works, but the UebersichtController not...

Was it helpful?

Solution

Put / controller at the bottom.

Try the following:

Route::controller('uebersicht', 'UebersichtController');
Route::controller('/', 'HomeController');

OTHER TIPS

Change the order of the routes so '/' is last.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top