Writing apps today almost always starts with a framework. Systems such as Ruby on Rails, Django, etc are leading the pack in developing best of breed web frameworks for advanced web apps.
Attempts to copy this style of framework in PHP has largely failed. Systems such as CodeIgniter are buggy and more limited than their counterparts in other languages despite PHP having a much bigger community.