Guest User

Untitled

a guest
May 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. $route['^pt/(.+)$'] = "$1";
  2. $route['^en/(.+)$'] = "$1";
  3.  
  4. $route['default_controller'] = "site/home";
  5. $route['^pt$'] = $route['default_controller'];
  6. $route['^en$'] = $route['default_controller'];
  7.  
  8. /* I have a controller called site with a method called contacts
  9. * I want contacts to point to site/contents
  10. *
  11. * tried: $route['contactos/(:any)'] = 'site/contactos'; No luck
  12. * tried: $route['contactos'] = 'site/contactos'; No luck
  13. */
  14.  
  15.  
  16. $route['404_override'] = '';
  17. $route['admin'] = 'admin/manage';
Add Comment
Please, Sign In to add comment