[eluser]jorgeakanieves[/eluser]
I have modified codeigniter code doing a schema views.
Code:
a) execute controller:
admin.php
$this->load->library('users');
b) load a model from library...
users.php
$this->CI->load->model("model_users");
c) return to controller and send the view to schema controller
admin.php
parent::sendContent($view);
d) from schema class load other controllers...
$view = $this->load->controller('header');
here is when i get the error because i try in controller function to do:
Code:
$obj =& new $name(); //new header()
and I get the error:
Code:
Undefined property: CI_header::$model_users
Fatal error: Call to a member function _assign_libraries() on a non-object in...Loader.php on line 1085
If I set to null the
I resolve the problem... Why??
I supose I can´t use the model_users model after this....