News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Vinu Thomas' Blog:
Quicker and cleaner Form using Zend Form
February 13, 2008 @ 08:56:00

On his blog today, Vinu Thomas has an example of what he calls a "quicker and cleaner form" using the Zend_Form component of the Zend Framework.

Usually handing forms involves coding the form in HTML and performing client and server side validation, which usually makes the code for complex forms quite unwieldy. Zend_Form which is available in Zend Framework version 1.5 aims at simplifying this process.

With this new version comes the ability to add in methods for validation right into the form definition. His example shows a traditional login form that checks things like if it's required, checking the length and adding filters to modify the input.

0 comments voice your opinion now!
zendframework zendform validate field definition



Chris Hartjes' Blog:
Simple User Registration in CakePHP 1.2, Part II
January 23, 2008 @ 09:36:00

Chris Hartjes has followed up on a previous post about user authentication in CakePHP with a few more comments in part two.

I got a question in the comments about my previous post on simple user registration about how to do some of the necessary validation for registration in the model. I thought I'd show some code I did to do exactly that.

He includes the code for his example with the key, he explains, being the use of a second field (the confirm password field) to do the validation.

0 comments voice your opinion now!
user registration cakephp validation confirm field


Tim Koschuetzki's Blog:
How to put Combined Fields Into CakePHP's Model->generateList()
August 10, 2007 @ 09:36:00

Tim Koschuetzki has posted this tutorial today about how to create form fields with combined information from more than one database column.

Two days ago, someone on #cakephp had the problem of getting combined values out of the Model->generateList() function in CakePHP. I advised him on doing some Set::extract() things, which at the end of the day got rather complicated. As a result, I was conscience-stricken. Here is a much more elegant solution I could come up with.

He introduces the generateList function first, showing how to use it to create a simple select list in your form. Unfortunately, it only understands using one field at a time, so he worked around it, creating a solution - his myGenerateList function - that handles things similarly and returns the same kinds of results (so it can be used with the set() function as well).

0 comments voice your opinion now!
combined field data database cakephp framework generatelist combined field data database cakephp framework generatelist


The Bakery:
New Articles/Tutorials - NiceHead, Field Validation and Plugin Paths
May 15, 2007 @ 11:53:00

The Bakery has three new items posted today - a view helper for CSS/JS file inclusion, field validation, and rewriting a plugin's paths:

Check out these and more great CakePHP-related tutorials on The Bakery!

0 comments voice your opinion now!
nicehead field validation cakephp framework plugin path nicehead field validation cakephp framework plugin path


DevShed:
Using Unbuffered Queries and More with SQLite with PHP 5
December 11, 2006 @ 12:46:00

Continuing with their look at PHP5 and SQLite, DevShed has posted part two of the series - "Using Unbuffered Queries and More with SQLite with PHP 5".

Taking into account the group of characteristics that I mentioned [a few lines above], in this second tutorial of the series, I'll be taking a look at some of them. This will give you a clearer idea of how to use them as part of your existing and -- why not? -- future PHP applications.

They take a look at the hows and whys of working with the unbuffered queries and well as some examples - counting rows and fields in a database table and looking at the use of more "row-processing methods" to get different sorts of data out.

0 comments voice your opinion now!
unbuffer query sqlite part2 php5 row field processing unbuffer query sqlite part2 php5 row field processing



Community Events











Don't see your event here?
Let us know!


zend PHP5 conference cakephp framework code application database zendframework developer job release mysql package example PEAR book releases security ajax

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework