function __construct() { parent::__construct(MY_Controller::SYSTEM_APP); if (Helper_App_Session::isLogin()) { $this->redirect('app/dashboard'); return; } $this->browser = Helper_Browser::isIExplorer(); }
public static function init($id_company, $id_user) { self::setVars(array('__id_company' => $id_company, '__id_company_branch' => NULL, '__id_rol' => NULL, '__id_user' => $id_user, '__id_person' => NULL, '__isSuperAdmin' => FALSE, '__isAdmin' => FALSE, '__id_profile' => NULL, '__last_time' => date('Y-m-d H:i:s'), '__inInactivity' => TRUE, '__isBlock' => FALSE, '__id_system' => Helper_Config::getSystemId(), '__isIExplorer' => Helper_Browser::isIExplorer(), '__browser' => Helper_Browser::getBrowser())); self::buildData(); self::debugAll(); }