function __construct() { parent::__construct(MY_Controller::SYSTEM_APP); $this->browser_message = Helper_App_Browser::obtener_browser(); if (!Helper_App_Session::isLogin()) { $this->redirect('app/dashboard'); return; } }
static function layout($view, $arrParams = array(), $arrParamsLayout = array(), $useIframe = FALSE) { $MY =& MY_Controller::get_instance(); $resources_path = 'resources/assets/app'; $controller_current = $MY->uri->rsegment(1); $function_current = $MY->uri->rsegment(2); $content = ''; if (is_array($view)) { foreach ($view as $v) { $content .= $MY->load->view($v, $arrParams, true); } } else { $content = $MY->load->view($view, $arrParams, true); } $browser_message = Helper_App_Browser::obtener_browser(); $arrParamsLayoutDefault = array('useIframe' => $useIframe, 'resources_path' => $resources_path, 'content' => $content, 'controller_current' => $controller_current, 'function_current' => $function_current, 'navegador' => $browser_message); $MY->load->view('public/html/layout/layout', array_merge($arrParamsLayoutDefault, $arrParamsLayout)); }