开发者

PHP Classes, Do people use them to build a website? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago. 开发者_如何学Python

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜