php - laravel 4 routing to controller -



php - laravel 4 routing to controller -

i'm missing on laravel routing. here's route:

route::controller('admin', 'admincontroller', array('only' => array('index')));

here's controller:

// admincontroller.php class admincontroller extends basecontroller { /** * @return response */ public function index() { homecoming 'admin!'; } }

when visit /admin 404 error. i'm not sure why! expect admin!

you should rename index() method getindex() when using route::controller

php laravel

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -