Re: PHP Web Controls



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/
.



Relevant Pages

  • RE: Not compiling?????
    ... "aspnet_regiis.exe -i" That should fix your problem. ... >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 ... >If I place a Web Control Button and an HTML button on a grid layout, ... >What I get is only the HTML button. ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Hide scrollbars of a Multiline textbox while printing.
    ... I'm using a multiline textbox (web control, not the HTML one) in one of my aspx pages. ... but the problem is that it also prints the scroll bars of this multiline textbox. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Movenext and ASP.net
    ... The biggest mistake people make when coming to ASP.NET from ASP Classic is to imagine that ASP.NET is somehow the "next version" of ASP Classic. ... Secondly, apart from some very specific and quite rare occasions, ASP.NET does not use Response.Write to "write out" HTML. ... This involves creating the HTML markup for the web control on the aspx page and then wiring it up in your code behind page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • PHP Web Controls
    ... ASP.NET has a concept of a user defined web control, ... can implement their own web control and override the render method to ... write out html for that control. ... when writing PHP4+ code? ...
    (comp.lang.php)
  • Re: What were "shadow blocks"?
    ... it was possible to have shadow blocks of the same ... FAR plug-ins, and I did not want to be so much dependent on FAR. ... if the functions occupy 2 screens and the IDE provides a ... The Forth source is html. ...
    (comp.lang.forth)