Tuesday, 15 April 2014

php - Learning Laravel -



php - Learning Laravel -

am newbie in laravel (am using latest version) , have next in "routes.php" file:

route::get('/books', function(){ homecoming 'books index'; }); rout::get('/books/{genre}', function($genre){ homecoming "books in {$genre} category"; });

if come in these in browser ::

http://localhost/laravel/public/books // first address http://localhost/laravel/public/books/movies // sec address

to test both addresses, error page(s) says went wrong. if comment sec route , seek first address works. sec address never works if comment first route. long both routes present, none of addresses work.

what doing wrong?

thanks.

on sec route, missing e (rout != route). syntax error routes file not execute correctly.

i have added comment, reputation not plenty that.

php laravel

No comments:

Post a Comment