Multilingual application |
(09-14-2015, 12:06 PM)Camo Wrote: Hi, Hi, You can use the following regular expresion for routes: Code: $route['^(\w{2})/(.*)$'] = '$2'; And to can pass variables to views you can use a protected variable to add all variables that you will use at your views: MY_Controller: PHP Code: class MY_Controller extends CI_Controller Example controller: PHP Code: class Example extends MY_Controller
Greetings.
|
Messages In This Thread |
Multilingual application - by Camo - 09-14-2015, 12:06 PM
RE: Multilingual application - by rtorralba - 09-14-2015, 02:43 PM
RE: Multilingual application - by Camo - 09-14-2015, 03:14 PM
RE: Multilingual application - by rtorralba - 09-14-2015, 04:06 PM
RE: Multilingual application - by Camo - 09-14-2015, 04:26 PM
RE: Multilingual application - by rtorralba - 09-15-2015, 02:53 PM
|