Recommended OO approach when using CI |
Sorry if I am driving people a little crazy with all the questions
![]() I come from a procedural background and I am trying hard to adopt a more OO approach. This question might be more PHP related than it is CI related, I'm not sure. Anyway, I am wondering what is the best approach when working with controllers and models in CI. I see an awful lot of examples on the web like this: PHP Code: $this->load->model('customer_model'); The above is an approach I am very familiar with, and seems similar to many of the examples I see in tutorials and so on. However I can't help feeling a better approach is: PHP Code: $this->load->model('customer_model'); Please let me know what you think. I appreciate your thoughts. |
Messages In This Thread |
Recommended OO approach when using CI - by CINewb - 05-11-2016, 05:16 PM
RE: Recommended OO approach when using CI - by PaulD - 05-12-2016, 03:42 PM
RE: Recommended OO approach when using CI - by PaulD - 05-12-2016, 04:06 PM
|