I am trying to load view for pre controller hook, but it is giving following error :
Call to a member function view() on null
I want to display message on screen for database connectivity from pre controller hook.
Hook controller function code is as follows:
public function check_db_connection() {
   $CI = & get_instance();
   $CI->load->view('common/footer');  }
 
    