Reply to PHP Web Controls

Your name:

Reply:


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?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация