0

the route setting:

Route::set('movie', '<id>(/<action>.htm)', 
    array('id' => '[1-9][0-9]*')
)->defaults(
    array('controller' => 'Movie', 'action' => 'index')
);

create a url with Route::url():

Route::url('movie', array('id' => 2));

then, got a url like:

http://www.domain.com/2

how get a url end with "/" ?

like this:

http://www.domain.com/2/

thanks !

sunchuo
  • 53
  • 2
  • 5

0 Answers0