function page($access) { $this->db->select('*')->from('pages')->where('access', $access); $query = $this->db->get(); $data['page'] = ($query->num_rows() != 0) ? $query->row_array() : array('id' => NULL, 'title' => 'Opps! 404 Not Found', 'content' => 'The Page you where looking for was not found! Either it didn\'t exist, or your just playing with the get requests!'); $this->Loader->view('pages', $data['page']['title'], $data); }