PHP Classes, Do people use them to build a website? [closed]
After a little debate with a friend on the use of PHP classes to build a website. How are they used to create a website? and which method is best?
For example say your website was bobs flowers, would you have a bobs flowers class? Or would you use classes within a "normal" PHP setup (eg just a DB class).
How does it work? I have always just used PHP without classes however am beginning to realise how useful they can be within programming.
You should definitely use classes/objects when building a website.
Regarding 'best use', you could have a look at how frameworks do it. E.G. Zend Framework, CakePHP, CodeIgniter
精彩评论