Email validation messages

Thomas Weidner has posted an article about how to set your own validation messages when validating emails.

It turns out that it’s quite tricky to do as Zend_Validate_EmailAddress uses Zend_Validate_Hostname behind the scenes. He documents how it will be much easier to do in ZF 1.10:

I added a new feature which is available as with Zend Framework 1.10. With it you can set hostname messages from within the email validator… the above code can then be simplified to:
$validator = new Zend_Validate_EmailAddress();
$validator->setMessages(
    array(
        Zend_Validate_Hostname::UNKNOWN_TLD => 'I don't know your TLD',
        Zend_Validate_Hostname::INVALID_HOSTNAME => 'I don't know your hostname'
        Zend_Validate_EmailAddress::INVALID => 'Are you sure this is a email address?'
    )

Very useful stuff.

Posted by Rob on 9th August 2009 under Around the web | Comments Off

Zend Framework and the Dojo dijit editor

Jason Houle has posted an article on how to use Dojo’s digit.Editor WYSIWYG editor with Zend Framework.

In one of my current projects, AircraftConnection.com, I decided to use the dijit.Editor WYSIWYG editor in my user’s forms. I ran into a few problems and could not find much documentation on the topic.
  1. I wanted the label, description, and field in a different order.
  2. I wanted the data entered into the editor to actually be passed to the server when the form was submitted.
  3. I wanted to pre-populate the form with data the user had previously entered.

He shows how to extend Zend_Dojo_Form_Element_Editor to provide a customised set to decorators and then goes on to show to to use it within a Zend Framework MVC application.

Check it out!

Posted by Rob on 22nd July 2009 under Around the web | Comments Off

Zend Framework tutorial on YouTube

Alexander Romanenko has recently posted a Zend Framework tutorial video on YouTube.

If learning visually is your thing, then check it out!

Posted by Rob on 6th July 2009 under Around the web | 1 Comment »

Secure login with Zend Framework

Enrico Zimuel has posted an article on how to build a secure login with Zend Framework:

After a long pause i’m come back on my blog with a post about the development of a secure web login system in PHP with the use of Zend Framework. The issue to build a login system in a web application is quite common. The security aspect of a login system is absolutely important and in this post i have summarized some of the main security points. Of course this is not the final solution but, in my opinion, is a good point of start for PHP developers.

He goes on to show all the key steps required including the use of Zend_Form_Element_Hash to help secure against CSRF attacks.

All in all a good read and Zend Framework 1.8 compatible too :)

Posted by Rob on 4th July 2009 under Around the web | 2 Comments »

PHP 5.3 is released!

It’s happened! PHP 5.3 has been released. This version was a long time coming and as such has lots of new features and bug fixes.

The key new features for me are:

There is a migration guide available, but you should also check out Cal Evans’ migration notes over at TechPortal too.

You can download it directly now, or wait for your favourite distribution to package it for you soon!

Posted by Rob on 30th June 2009 under Around the web & News | Comments Off

Registering front controller plugins in Zend Framework 1.8

Wenbert Del Rosario has posted an article on how to register a front controller plugin using Zend Framework 1.8.

With ZF 1.8, we can now use the application.ini file and he shows the format of the lines required, along with setting it up so that you use your own name space.

Posted by Rob on 20th June 2009 under Around the web | Comments Off

Zend Framework Modular applications

Jeroen-Keppens has written a good article on how to create a modular application with Zend Framework:

I like my code nicely seperated in manageable blocks, that I can reuse whenever I want. Needless to say, I’m a big fan of the modules in Zend Framework. It isn’t always very easy to set it up though.

He covers how to set up modules using the zf command line tool along with a module bootstrap, before covering views and models. Reading this article will certainly help you understand how to use modules in your apps.

Posted by Rob on 18th June 2009 under Around the web | Comments Off

Todo list worked tutorial in Zend Framework

Greg, over at threadaffinity has written the first in a series of articles about creating a todo list application using Zend Framework:

A while back we posted a blog entry on a simple Zend Framework example using Zend_Auth. The example consisted of a basic website that re-directed the user to a login page when they tried to access a restricted area of the site (eg. their Account page). Well some time passed and we got a little older and wiser in terms of using Zend Framework so we decided to try again – this time with a little more ambitious goals.

There’s already a demo site up, where you can download the source code.

Posted by Rob on 18th June 2009 under Around the web | 1 Comment »

Simple Zend Framework tutorial

Ryan Mauger has produced a simple tutorial showing how to implement the basic CRUD operations using Zend Framwork.

Creating a nice, easy to maintain form, starts with a form class. Creating your forms procedurally in your controller/actions is horrid. please don’t do it.

Read the article.

Posted by Rob on 18th June 2009 under Around the web | Comments Off

All about Zend_Tool in ZF 1.8

Ralph Schindler has written and article on Zend_Tool and ZF 1.8 on devzone. In it he explains what Zend_Tool is and how to use it.

Instead of whipping together a system that was targeted specifically for creating ZF based applications, specifically on the command line, and strictly generating code and not modifying existing code, we set out to build a system extensible in every regard that should concern a developer. Zend_Tool was designed to facilitate abstraction at all the necessary points where we felt that developers would want to extend the system.

He then goes on to show what Zend_Tool can currently do using a series of screenshots.

Posted by Rob on 4th May 2009 under Around the web | Comments Off

« Prev - Next »