I want to access a controller, which is located in application/controller/example.php, from a model – located in application/model/users.php
class Users extends CI_Model {
//access the example.php controller
}
Who could i accomplish this ?
You don’t want to ever do that, hence why CodeIgniter cannot do it. You should be accessing everything else from your Controller, not the other way around.
A good old resource from CodeIgniter 🙂
http://codeigniter.com/user_guide/overview/mvc.html