从PHP类生成页面 [英] Page generation from PHP class

查看:113
本文介绍了从PHP类生成页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上是创建网站的乐趣和一些朋友告诉我,如果我可以创建一个php类的代表整个页面的页面的输出,我可以更高效。

$ b



感谢

解决方案

我建议查看一些PHP框架,如Cake对初学者有好处,或者如果你更熟练的话,Symfony或Zend Framework。这些将简化您的PHP开发很多。


I'm actually creating websites for fun and some of my friends told me that I could be more efficient if I could create the output of the page with a php class that would represent the whole page.

I was wondering how you people would do it.

Thanks

解决方案

I'd suggest looking into some PHP frameworks, such as Cake which is good for beginners, or Symfony or Zend Framework if you're more skilled. Those will streamline your PHP development a lot.

这篇关于从PHP类生成页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆