Visibility of Methods in Models |
(12-19-2016, 06:17 AM)HTLove Wrote: Cạn lời... Thanks for your help. But the point is: Why is running without errors when i call protected method from MY_model? public function doSomething(){ $this->load->model("Product_model", "product_m"); $this->product_m->publicMethodMyModel(); $this->product_m->protectedMethodMyModel(); // here is the problem. This call should generate an error but it is not. $this->product_m->publicMethodProduct(); // $this->product_m->protectedMethodProduct(); } |
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
RE: Visibility of Methods in Models - by solanogalema - 12-19-2016, 09:12 AM
|