-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f529493
Showing
52 changed files
with
3,165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
/* | ||
| ------------------------------------------------------------------------- | ||
| URI ROUTING | ||
| ------------------------------------------------------------------------- | ||
| This file lets you re-map URI requests to specific controller functions. | ||
| | ||
| Typically there is a one-to-one relationship between a URL string | ||
| and its corresponding controller class/method. The segments in a | ||
| URL normally follow this pattern: | ||
| | ||
| www.your-site.com/class/method/id/ | ||
| | ||
| In some instances, however, you may want to remap this relationship | ||
| so that a different class/function is called than the one | ||
| corresponding to the URL. | ||
| | ||
| Please see the user guide for complete details: | ||
| | ||
| http://www.codeigniter.com/user_guide/general/routing.html | ||
*/ | ||
|
||
// Maintain admin routes | ||
$route['galleries/admin(:any)?'] = 'admin$1'; | ||
|
||
// Rewrite the URLs | ||
$route['galleries/(:any)/(:num)'] = 'galleries/image/$1/$2'; | ||
$route['galleries/(:any)'] = 'galleries/gallery/$1'; | ||
?> |
Oops, something went wrong.