* @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { if ($this->dbupdate()) echo 'System-DB needs update!'; else { $this->load->view('templates/header'); $this->load->view('vilesci_frameset'); $this->load->view('templates/footer'); } } private function dbupdate() { // Check for update (codeigniter migration) $this->load->library('migration'); if ($this->migration->current() === FALSE) show_error($this->migration->error_string()); if ($this->migration->current() != $this->migration->latest()) return true; else return false; } }