You are here: Re: PHP Web Controls « PHP Programming Language « IT news, forums, messages
Re: PHP Web Controls

Posted by Manuel Lemos on 05/03/07 07:42

Hello,

on 05/02/2007 02:02 PM Areric said the following:
> 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?

You may want to try this forms generation class. You can develop
plug-ins to implement new behaviors, new validations, new layouts, etc..

http://www.phpclasses.org/formsgeneration


Here you may find several example scripts in action so you can see the
basic form features and several plug-ins:

http://www.meta-language.net/forms-examples.html


Here is a tutorial video explain all the features and some of the
available plug-ins:

http://www.phpclasses.org/browse/video/1/package/1.html

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

 

Navigation:

[Reply to this 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

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