Latest

Archive

Community news

C++

Communities and Content

Databases

Editorials

Emacs

General

HTML

Java

Notices

PHP

XML

Apache

C++

Database

General

HTML

Java

Javascript

Linux

Object oriented programming

Open source

Perl

PHP

Python

Ruby

SOAP

XML

Suggest a link

Advertise on zez

Contribute

Contact us

About zez


PHP Widgets



As you can see from the code I've used som other objects, they are all part of eZ publish.

The thing with widgets is that you need them often, and you need them to solve the same problem. Thus you could add more code to the widget, for example code for checking the validity of a text field.

Well, attached you'll find the examples I've used; you'll need the classes in eZ publish to run them, but you'll graps the idea.

Caveats

It could be tempting to use classes and abstraction for most things in a site, and I must say that in theory it sounds very great. But we also should remember that it incurrs an overhead to the rendering of a page. Thus I only suggest you use this method for forms and not for live content which most of your visitors will view. At leat not without proper caching of the results.

Attached files:


<< Previous page | 1 | 2 | < 3 > | Printer-friendly page |

Comment List


There are no comments.


Forgot your password?

Register a new user

Results

Polls