Welcome Guest, Not a member yet? Register   Sign In
Visibility of Methods in Models
#1

   
 Question?

If i load model (Xpto_model) that extends MY_Model, that extends CI_Model and call a protected method from MY_Model.
Should be work?
$this->load->model("Xpto_model");
$this->Xpto_model->protectedMethodFromMyModel();

Its actual working, but i think it should not work. Because if i transfer the method to Xpto_model a correct errors appears.
Reply


Messages In This Thread
Visibility of Methods in Models - by solanogalema - 12-18-2016, 11:45 PM
RE: Visibility of Methods in Models - by HTLove - 12-19-2016, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB