News for hackers. Stuff that matters.
Re:Ask HN: How to write great PHP code? by tgriesser on Monday January 03, 2011 @10:20PM (#2065701)
First, make sure you understand some of the higher level OO concepts of PHP like variable scope, inheritance, polymorphism, and visibility. You can easily do this in the php docs and stackoverflow, or other such Google searches.

Then take a look at Codeigniter, http://codeigniter.com/user_guide/ it's organized, explains the how and why of MVC, is very very well documented and has a lot of great libraries for getting started, then once you get familiar with how everything works you can begin to look under the hood and start figuring out why it works the way it does and continue learning from there.

Re:Ask HN: How to write great PHP code? by gexla on Monday January 03, 2011 @10:28PM (#2065719)
Actually, if you really want to learn PHP then CodeIgniter isn't the best place to start IMO. It's great to use as a tool for production. It's probably okay to get going at the very beginning. But if you want to really learn PHP, especially the new additions for PHP 5.3 then I suggest looking the code and using a PHP 5.3 framework. Look for a really small one so that you can see everything in the framework without having to look through a ton of files. Fatfree is one good example. A CodeIgniter based PHP 5.3 framework is fuelphp.