CodeIgniter Forums
General php OO tutorials / tips? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: General php OO tutorials / tips? (/showthread.php?tid=48087)



General php OO tutorials / tips? - El Forum - 01-04-2012

[eluser]september28[/eluser]
Hi there,

I have around 6 years experience with php, and about 3 years using Codeigniter. I don't however have a formal background in computer science or alike.

I was wondering whether anyone had written any tutorials/blog posts about good practice for OOP in Codeingiter. I seem to suffer from just creating methods based on what I want to do for a particular action. As such, I end up with model and library methods that look like:
Code:
public function get_list_of_people()
. I am aware however that the true way of OO is to treat classes as true object with properties that can be modified.

I have looked at a number of other people's code and can spot the difference between good and bad code, however I was wondering whether anyone has any tips for how they go about creating code in their libraries, models etc?

Thanks in advance,

Dan