public function init() { try { // Store logged ISP. I'm in the public area, se we use only the URL $ISP = Isp::findByUrl($_SERVER['HTTP_HOST']); if (!empty($ISP)) { Shineisp_Registry::set('ISP', $ISP); } // Load all the status in the registry $statusreg = Shineisp_Registry::get('Status'); if (empty($statusreg)) { $status = Statuses::getAll(); Shineisp_Registry::set('Status', $status); } } catch (Exception $e) { Shineisp_Commons_Utilities::log(__METHOD__ . " " . $e->getMessage()); } parent::init(); }