|
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]
|