Skip to content

Instantly share code, notes, and snippets.

@pabloprogramador
Created September 19, 2013 19:14
Show Gist options
  • Save pabloprogramador/6628442 to your computer and use it in GitHub Desktop.
Save pabloprogramador/6628442 to your computer and use it in GitHub Desktop.
Routes rotas config
<?php
$route['default_controller'] = 'loja/home';
$route['404_override'] = 'pages';
$route['admin/help/([a-zA-Z0-9_-]+)'] = 'admin/help/$1';
$route['admin/([a-zA-Z0-9_-]+)/(:any)'] = '$1/admin/$2';
$route['admin/(login|logout|remove_installer_directory)'] = 'admin/$1';
$route['admin/([a-zA-Z0-9_-]+)'] = '$1/admin/index';
$route['api/ajax/(:any)'] = 'api/ajax/$1';
$route['api/([a-zA-Z0-9_-]+)/(:any)'] = '$1/api/$2';
$route['api/([a-zA-Z0-9_-]+)'] = '$1/api/index';
$route['register'] = 'users/register';
$route['user/(:any)'] = 'users/view/$1';
$route['my-profile'] = 'users/index';
$route['edit-profile'] = 'users/edit';
$route['registrar'] = 'users/register';
$route['usuario/(:any)'] = 'users/view/$1';
$route['meu-perfil'] = 'users/index';
$route['editar-perfil'] = 'users/edit';
$route['logout'] = 'users/logout';
$route['login'] = 'users/login';
$route['sitemap.xml'] = 'sitemap/xml';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment