ASP.NET在PHP用户控件的方法吗? [英] Alternative of ASP.NET's UserControls in PHP?
问题描述
我已经开发了许多Web应用程序中,我有利用用户控件来管理页眉页脚和网页的任何其他共同部分。现在我在开发PHP应用程序,有什么我可以为用户控件的??一个替代使用
I have developed many web applications in ASP.NET in which I have make use of UserControls to manage header footer and any other common part of a web page. Now I am developing an app in PHP, is there anything which I can use as an alternative of UserControls??
我如何在PHP中实现类似的概念?
How I can implement the similar concept in PHP?
感谢?
推荐答案
一个第二个答案是有点困难,这里将详细讲解,是建立自己的用户控件类。该班将有您需要的neccessary属性,将有一个RenderHTML()方法,将输出控制到屏幕上。
A second answer which is a bit harder to explain in detail here, is to build your own 'UserControl' classes. The Classes would have the neccessary properties that you require, and Would have a RenderHTML() method that would output the control to the screen.
这篇关于ASP.NET在PHP用户控件的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!