php - Call a controller from another controller -


i want call controller, have these two

ajax_controller

. . . public function download_low_image($image){ $file = $this -> mimages -> get_image_file($image); $test = new thumb_controller(); $test->crop();  } 

but returns

unable locate specified class: session.php 

how can fix this?

may solve problem. generallly , can load other controller as

  1. load controller inside controller like

    $this->load->library('../controllers/thumb_controller');

  2. then call method

    $this->thumb_controller->functioname();


Comments