473,326 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Custom PHP UI Components?

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?

Jun 28 '07 #1
3 5394
dj****@gmail.com wrote:
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?
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.

Jun 28 '07 #2
Hello,

on 06/28/2007 07:48 PM dj****@gmail.com said the following:
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?
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:

http://www.phpclasses.org/formsgeneration
--

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/
Jun 30 '07 #3
dj****@gmail.com schreef:
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?
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:
http://www.phppeanuts.org/site/index_php/Pagina/26
For the pattern see:
http://www.phppeanuts.org/site/index_php/Pagina/195

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);

Success,

Henk Verhoeven,
www.phpPeanuts.org.

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:
http://www.phppeanuts.org/site/index...nt.web.widgets
and the parts:
http://www.phppeanuts.org/site/index.../pnt.web.parts
Jul 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
2
by: glenn | last post by:
I have been looking to no avail for a book, site or something that explains the processes involved with writing my own custom components such as grids, textboxes and such and then registering with...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
3
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
5
by: ross kerr | last post by:
Hi All, I am extending the combobox to create a control that selects an item based on the text the user is typing into the text area of the control. I have an issue that occurs only when i...
1
by: Brian Henry | last post by:
I am trying to make a custom user control that gets a list of users from our database and populates the list, its an owner drawn control also, the problem is, I placed the item onto a form and...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
1
by: TC | last post by:
Every time I open my project, I get a warning which says "There are updated custom wrappers available for the following referenced components: Office." When I double-click on the warning, I get...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
0
by: Ravi Kumar | last post by:
hi :) I was trying to develop a custom mod_python based web-site, just today. the problem I got though i liked the mod_python's feature of mapping and calling functions in python script by...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.