vLight

fuelPhpRoutes

Dec 14th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. return array(
  2.     '_root_'  => 'welcome/index',                   // The default route
  3.     '_404_'   => 'welcome/404',                     // The main 404 route
  4.  
  5.     'movies' => 'movies/index',                     // Get All Movies
  6.     'movie/(:num)?' => 'movies/show/$1',            // Get certain Movie by ID
  7.  
  8.     'actors' => 'actors/index',                     // Get All actors
  9.     'actor/(:num)?' => 'actors/show/$1',            // Get certain Actor by ID
  10.     'actor/(:segment)?' => 'actors/show/$1',        // Get actor by slugified Name
  11.  
  12.     'categories' => 'categories/idnex',             // Get all categories
  13.     'category/(:alpha)?' => 'categories/show/$1'    // Get certain category by its name
  14. );
Advertisement
Add Comment
Please, Sign In to add comment