private function initHook() { try { $this->CI =& get_instance(); $this->beginRequest(); if (ApplicationHook::$LOGIN_URL == "") { ApplicationHook::$LOGIN_URL = site_url('user_account/login/') . '?url_redirect='; } } catch (Exception $e) { echo "Page error:<br>"; echo $e->getMessage(); } }
private function initHook() { try { $this->CI =& get_instance(); $this->beginRequest(); if (ApplicationHook::$LOGIN_URL == "") { ApplicationHook::$LOGIN_URL = base_url() . $this->CI->config->item('index_page') . '?c=welcome&m=login&url_redirect='; } } catch (Exception $e) { echo "Page error:<br>"; echo $e->getMessage(); } }