Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jerel committed Dec 8, 2011
0 parents commit f529493
Show file tree
Hide file tree
Showing 52 changed files with 3,165 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config/routes.php
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';
?>
Loading

0 comments on commit f529493

Please sign in to comment.