 | News Feed |
Sections
Community Events
Don't see your event here? Let us know!
|
| feed this: |  |
Neil Garb's Blog: Compound elements with Zend_Form
posted Thursday July 17, 2008 @ 11:13:03
voice your opinion now!
BY CHRIS CORNUTT
In a recent entry to his blog, Neil Garb shows his method for creating compound elements in a Zend_Form object in your Zend Framework website.
Zend_Form can save you a lot of time. It almost completely abstracts away the most boring and error-prone aspects of developing secure and standards-compliant HTML forms. But one thing it doesn't do out of the box is compound elements, such as three-field dates. In this post I'll show you the easiest way to do this ZF-style.
He goes through the creation of the sample controller, an example of a custom element (the multiple date drop-downs he mentioned) and how to handle the validation in a "Zend Framework way" via an isValid call.
tagged with: compount element zendform zendframework
PHPImpact Blog: Zend_Form Performance Issues
posted Monday July 07, 2008 @ 10:21:14
voice your opinion now!
BY CHRIS CORNUTT
On the PHP::Impact blog, there's a new post mentioning some of the problems that he (Federico) has run into when his Zend_Form forms got larger and larger - performance.
If you are using Zend_Form and your site increases in complexity and attracts more traffic, you are most likely to run into performance problems. Of course, bigger and more complex projects result in more load on your servers. [...] In this post I'll explain the problems I faced when using Zend_Form and how I managed to optimize it and improve the performance of my application.
He ran a few tests against his code and found out that one of the biggest causes of overhead was the many calls to other components in the framework to handle different parts of the output. His solution was to modify the Zend_Form_Elements component to check for dependencies before the form is executed. Pre-loading like this prevents the high-overhead (and repetitive) dynamic loading later on.
tagged with: zendframework component form zendform performance issue load
Rob Allen's Blog: Top Tip XHTML with Zend Form Elements
posted Thursday May 29, 2008 @ 12:01:50
voice your opinion now!
BY CHRIS CORNUTT
Rob Allen has posted a quick tip of how to use the Zend_Form component of the Zend Framework to correctly render XHTML compliant output.
When you render a Zend_Form, the elements will render to HTML compliance rather than XHTML compliance, even if you have < ?php echo $this->doctype('XHTML1_STRICT');?> at the top of your layout script. Practically, this means that all the input elements do not end in "/>". To resolve this, you need to call the doctype() view helper prior to rendering your form.
He includes an example of the doctype call (on a view object) to tell the script to output in the "XHTML1_TRANSITIONAL" format.
tagged with: zendform zendframework component xhtml render transitional
Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 6 Zend_Form & Zend_Auth
posted Thursday May 08, 2008 @ 09:33:36
voice your opinion now!
BY CHRIS CORNUTT
Padraic Brady has continued his series about making a sample blogging application with the Zend Framework in a new blog post, part six - a focus on Zend_Form and Zend_Auth.
In the previous entry, we created a new Administration Module to hold blog management functionality, added a Module specific layout for it, and discussed the upcoming need to ensure this is only accessible by authorised Authors. In this entry I'll unravel some of Zend_Form's mysteries in adding a login form, before using Zend_Auth to implement authentication for authors.
He includes the code (controller and view) to add the login form as a part of the Author functionality and, using a few decorators to help him build the form how he likes it, extends the Zend_Form component to make his form with username, password and submit elements. He throws in some validation and a bit of error checking to finish it off.
tagged with: zendframework blog application tutorial zendform zendauth
Zend Developer Zone: Decorators with Zend_Form
posted Monday May 05, 2008 @ 12:57:34
voice your opinion now!
BY CHRIS CORNUTT
On the Zend Developer Zone there's a new tutorial (by Matthew Weier O'Phinney) covering the use of decorators with the Zend_Form component of the Zend Framework.
One point of flexibility [Zend_Form] offers has proved to be a pain point for many developers: decorators. This tutorial aims to shed some light on decorators, as well as provide strategies for creating your own decorators and combining them in creative ways to customize the output your forms generate.
Matthew starts with a little background behind the component to help you find your way around. Building on this, he shows how to use some standard output decorators and how to create decorators of your own. His example shows how to create a set of grouped checkboxes.
tagged with: decortor zendform tutorial background example
IBM developerWorks: What's new in Zend Framework V1.5
posted Thursday April 17, 2008 @ 09:33:35
voice your opinion now!
BY CHRIS CORNUTT
The IBM developerWorks website has a new article/tutorial posted today about the new features and functionality that's included with the latest release of the Zend Framework, version 1.5.
The popular open source Zend Framework just got some slick enhancements. Learn what's new in V1.5 and how upgrades, including Zend_Form, Zend_Layout, and Zend_View, enhanced support for GData Web services, and improved Ajax support can help PHP developers easily roll out cutting-edge Web applications.
They walk through each of the new components (or features in them) like Zend_Form and Zend_Layout/Zend_View with examples included. There's also mention of other miscellaneous updates like the addition of OpenID and InfoCard support, a LDAP authentication module and an interface with Google's GData service.
tagged with: zendframework new feature component zendform zendlayout zendview
Rob Allen's Blog: Simple Zend_Form File Upload Example
posted Monday April 07, 2008 @ 09:30:30
voice your opinion now!
BY CHRIS CORNUTT
Rob Allen has posted an example (a simple one to get you started) of creating a file upload form in the Zend Framework.
Zend Framework 1.5's Zend_Form component is missing support for the file input element as it is waiting on a file upload component to build upon. We're busy people, so we'll fake it...
His example gives a screenshot of the end result and includes all of the code needed to make it all work - the form, the custom file form element, a ValidFile validation class to ensure you're getting exactly what you want and the controller to define the form and execute it once the user submits.
tagged with: zendform validate example code zendframework
|