| |
|
 |
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:
Comment List
There are no comments.
|
 |
|
|