public function action_change2En() { //carga de el idioma xD ------------------------------ $en = new LoadLanguage(); $controladores = array("privatezone"); $en->loadData($controladores, 'es', 0, 1); //--------------------------------------------------- echo "1"; die; }
public function action_cambiarIdiomaEn() { //carga de el idioma xD ------------------------------ $en = new LoadLanguage(); $controladores = array("example"); $en->loadData($controladores, 'es', 0, 1); //--------------------------------------------------- echo "1"; die; }
*/ Kohana::$log->attach(new Kohana_Log_File(APPPATH . 'logs')); /** * Attach a file reader to config. Multiple readers are supported. */ Kohana::$config->attach(new Kohana_Config_File()); /** * Enable modules. Modules are referenced by a relative or absolute path. */ Kohana::modules(array('auth' => MODPATH . 'auth', 'cache' => MODPATH . 'cache', 'database' => MODPATH . 'database', 'image' => MODPATH . 'image', 'orm' => MODPATH . 'orm', 'userguide' => MODPATH . 'userguide', 'helpers' => MODPATH . 'helpers', 'libraries' => MODPATH . 'libraries')); //==================================IBUS+======================================= /** * Configuración para cargar el idioma y la traducción */ Kohana::$config->attach(new Kohana_Config_File('controllers')); $translations = new LoadLanguage(); $controllers = array("privatezone"); $translations->loadData($controllers, 'es', 0, 0); //==================================IBUS+======================================= /** * Set the routes. Each route must have a minimum of a name, a URI and a set of * defaults for the URI. */ Route::set('default', '(<directory>/<controller>(/<action>(/<id>)))')->defaults(array('directory' => 'public', 'controller' => 'login', 'action' => 'index')); if (!defined('SUPPRESS_REQUEST')) { /** * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. * If no source is specified, the URI will be automatically detected. */ echo Request::instance()->execute()->send_headers()->response; }