Custom PHP UI Components?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I know that you can create custom UI components with JSF,
but does anyone know if the same (or something similar) can be done
with PHP?

Re: Custom PHP UI Components? wrote:

Quoted text here. Click to load it

PHP does not create UIs. PHP just outputs stuff to stdout.

Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Don't plan any hasty moves.  You'll be evicted soon anyway.

Re: Custom PHP UI Components?


on 06/28/2007 07:48 PM said the following:
Quoted text here. Click to load it

Yes, try this forms generation and validation class that has a plug-in
system to add new UI components. There are several ready to use
components but you can develop your own:


Manuel Lemos

Metastorage - Data object relational mapping layer generator

PHP Classes - Free ready to use OOP components written in PHP

Re: Custom PHP UI Components? schreef:
Quoted text here. Click to load it
All you need is to set up a front controller, have it instantiate the  
right UI component class, then follow the composition by inclusion and  
callback pattern. For the principle see:
For the pattern see:

BTW, if you use a request parameter to hold the name of the primary UI  
component class, make sure you only include files from you own server.  
Php can include files from http, ftp etc coming from other servers, and  
that is happily used by hackers to run their own code on your server to  
take control. Some servers nowadays are protected, but you better check  
that class name not to hold any trickery:

if ($name&& preg_match("'[^A-Za-z0-9_]'", $name))
     trigger_error("Non alphanumerical characters in component class  
name", E_USER_ERROR);

Henk Verhoeven,

PhpPeanuts has several widget and component types, and of course you can  
add your own types too, eventualle extending the existing ones.
To browse the widgets:
and the parts:

Site Timeline