|
Posted by Areric on 05/02/07 17:02
Hey all,
ASP.NET has a concept of a user defined web control, where a person
can implement their own web control and override the render method to
write out html for that control.
I was wondering, in general, do people ever follow a similar pattern
when writing PHP4+ code? By which i mean, i could write a WebControl
base class and a TextBoxControl that inherits from that, then in my
html markup instead of writing out the input tag by hand i could call
textBox->render().
Up to this point i have simply hard coded all the html myself and then
inserted echos into the appropriate places. However, im wondering if
this might be a better approach then having such "messy" html.
Any thoughts? Opinions?
Navigation:
[Reply to this message]
|