I used to write PHP in a process-based or simple func way, because the scope of the application was small, so the problem was not obvious. Now the need to expand the application, so that the coding pressure is getting bigger. So want to use OO, but always feel not to know how to feel? For a beginner, how to start PHP oo?
Reply content:
I used to write PHP in a process-based or simple func way, because the scope of the application was small, so the problem was not obvious. Now the need to expand the application, so that the coding pressure is getting bigger. So want to use OO, but always feel not to know how to feel? For a beginner, how to start PHP oo?
I suggest you try to re-do your simple project based on a certain framework, and I guarantee that your perception of OOP will be like a torrent of water.
Of course you can also see some good tutorial, such as Symfony Classic jobeet:http://symfony.com/legacy/doc/jobeet/..., and then after that, there is a perception of the SF framework and OOP.
Then you look at the design patterns, think about the books you've read or the code you've written, think about why and how, and you can try to write a framework yourself. I believe that doing these things will make your oop ideas leap.
Desktop application Development It's best to know a little bit about it, because some of the concepts in OOP or design patterns are much more rooted in desktop programming, and it helps to understand.
Many PHP design Patterns online blog posts, as well as this book is called "PHP design mode" ~ ~
PHP design Pattern Salai (Aaron Saray), Liang Zhimin, Mr. Cai Tsinghua University Press (2010-06 published)
I see in this blog, hope to help you ~
Http://www.cnblogs.com/bluefrog/archi ...