Created
August 16, 2016 00:40
-
-
Save jlamim/72f079fcdc555d2e82a362c8a27e0ae9 to your computer and use it in GitHub Desktop.
Aplicações multi-idioma no CodeIgniter - routes.php
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
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
//rota definida para que a definição do idioma seja o primeiro nó da URL | |
$route['(:any)'] = 'Welcome/index'; | |
//para rotas adicionas, você pode utilizar algo como | |
//$route['(:any)/minha-rota'] = 'Welcome/meu_metodo'; | |
$route['default_controller'] = 'welcome'; | |
$route['404_override'] = ''; | |
$route['translate_uri_dashes'] = FALSE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment