<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 07:40:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ian Christian's Blog: Creating a custom form field type in Symfony 2]]></title>
      <guid>http://www.phpdeveloper.org/news/16725</guid>
      <link>http://www.phpdeveloper.org/news/16725</link>
      <description><![CDATA[<p>
<i>Ian Christian</i> has added a new post to his blog today showing how you can <a href="http://pookey.co.uk/wordpress/archives/286-creating-a-custom-form-field-type-in-symfony-2">create a custom form field type in Symfony 2</a> by extending the AbstractType.
</p>
<blockquote>
I am finally starting to dive into symfony 2 properly. Yes - it's taken a while, work has taken me in different directions! I found myself needing to create a custom form field type pretty quickly, but couldn't find much in the way of documentation to do so, so I thought I'ld throw it up here; partly to help others, but mostly to get feedback to make sure I'm not approaching this from the wrong angle.
</blockquote>
<p>
He includes the code that creates his custom "Person" model and the class to create his "transport type" select box that pulls in its values from a "choice list" class. He registers it in his bundle and it can then be included in his buildForm() method just like any other form field.
</p>]]></description>
      <pubDate>Tue, 16 Aug 2011 12:04:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[AjaxRay.com: Extending Zend Form Element to create customized Phone number field]]></title>
      <guid>http://www.phpdeveloper.org/news/15063</guid>
      <link>http://www.phpdeveloper.org/news/15063</link>
      <description><![CDATA[<p>
On the AjaxRay.com site today there's <a href="http://www.ajaxray.com/blog/2010/08/25/extending-zend-form-element-for-customized-phone-number/">a new tutorial</a> for the Zend Framework users out there with a library they can use to extend Zend_Form for custom phone number fields.
</p>
<blockquote>
When taking Phone number as user input, we can worn users about phone number format by setting a hint/description and can validate using Regular Expression. [...] Now, if we try provide this feature in Zend Form, that's possible. We can create three individual Zend_Form_Element_Text objects and join there value together to make the phone number. But, in this case, validating them together is a hassle.
</blockquote>
<p>
Instead of separate fields, <a href="http://www.ajaxray.com/blog/downloads/Zend_Form_Element_Phone">the library</a> they create makes it simple to handle them as a whole field. It works as a helper for Zend_Form and lets you set things like the separator between the text fields, a "format" string and a validator to apply to their fields (in the example code, it's the "digits" validator). Sample code is included to show you how it fits in your form.
</p>]]></description>
      <pubDate>Thu, 02 Sep 2010 08:05:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Building AutoComplete Inputs with PHP, PEAR, Dojo and YUI]]></title>
      <guid>http://www.phpdeveloper.org/news/11883</guid>
      <link>http://www.phpdeveloper.org/news/11883</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/4229-Building-AutoComplete-Inputs-with-PHP-PEAR-Dojo-and-YUI">a new tutorial</a> posted (from <i>Vikram Vaswani</i>) about adding in an auto-complete input field to your site. His example uses a PEAR class, Dojo and some components of the YUI libraries.
</p>
<blockquote>
Fortunately, modern programming toolkits like Dojo provide ready-made widgets that have the necessary client-side functions for autocomplete. Add a little bit of server-side glue, in the form of a PHP script that talks to a database to generate valid suggestions, and enabling this functionality in a Web application now becomes a matter of hours, rather than days. In this article, I'll show you how to do this using three different libraries: PEAR HTML_QuickForm, YUI, and Dojo. Come on in, and find out more!
</blockquote>
<p>
He shows how to combine <a href="http://www.dojotoolkit.org/">Dojo</a>, <a href="http://developer.yahoo.com/yui/">YUI</a> and the <a href="http://pear.php.net/package/HTML_QuickForm">HTML_QuickForm</a> PEAR package to create a field that, based on what they enter into the input field, searches a database to find values in that table.
</p>]]></description>
      <pubDate>Wed, 04 Feb 2009 15:29:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mike Bernat's Blog: CakePHP - Changing the Default Value of a Date-Time Input]]></title>
      <guid>http://www.phpdeveloper.org/news/11541</guid>
      <link>http://www.phpdeveloper.org/news/11541</link>
      <description><![CDATA[<p>
In a <a href="http://www.mikebernat.com/blog/CakePHP_-_Changing_the_Default_Value_of_a_Date-Time_Input">recent post</a> to his blog <i>Mike Bernat</i> gives a quick tip on how to change the default value of a data-time input field in a CakePHP application.
</p>
<blockquote>
Automagically generated date/time input fields normally default to the current date and time. For a couple of reasons, I had to change this to another default value.
</blockquote>
<p>
His included code shows how to modify the default behavior of the form input field for the date with an array of parameters including the hour, minute and meridian (am/pm) values for the element.
</p>]]></description>
      <pubDate>Wed, 10 Dec 2008 07:54:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Quicker and cleaner Form using Zend Form]]></title>
      <guid>http://www.phpdeveloper.org/news/9620</guid>
      <link>http://www.phpdeveloper.org/news/9620</link>
      <description><![CDATA[<p>
On his blog today, <i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2008/02/13/quicker-and-cleaner-form-using-zend-form/">an example</a> of what he calls a "quicker and cleaner form" using the Zend_Form component of the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
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.
</blockquote>
<p>
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.
</p>]]></description>
      <pubDate>Wed, 13 Feb 2008 08:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Simple User Registration in CakePHP 1.2, Part II]]></title>
      <guid>http://www.phpdeveloper.org/news/9474</guid>
      <link>http://www.phpdeveloper.org/news/9474</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has followed up on a <a href="http://www.phpdeveloper.org/news/9394">previous post</a> about user authentication in CakePHP with <a href="http://www.littlehart.net/atthekeyboard/2008/01/22/simple-user-registration-in-cakephp-12-part-ii/">a few more comments</a> in part two.
</p>
<blockquote>
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.
</blockquote>
<p>
He includes <a href="http://www.littlehart.net/atthekeyboard/2008/01/22/simple-user-registration-in-cakephp-12-part-ii/">the code</a> for his example with the key, he explains, being the use of a second field (the confirm password field) to do the validation.
</p>]]></description>
      <pubDate>Wed, 23 Jan 2008 09:36:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: How to put Combined Fields Into CakePHP's Model->generateList()]]></title>
      <guid>http://www.phpdeveloper.org/news/8426</guid>
      <link>http://www.phpdeveloper.org/news/8426</link>
      <description><![CDATA[<p>
<i>Tim Koschuetzki</i> has <a href="http://php-coding-practices.com/cakephp-specific/how-to-put-combined-fields-into-cakephps-model-generatelist/">posted this tutorial</a> today about how to create form fields with combined information from more than one database column.
</p>
<blockquote>
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.
</blockquote>
<p>
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).
</p>]]></description>
      <pubDate>Fri, 10 Aug 2007 09:36:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: New Articles/Tutorials - NiceHead, Field Validation and Plugin Paths]]></title>
      <guid>http://www.phpdeveloper.org/news/7848</guid>
      <link>http://www.phpdeveloper.org/news/7848</link>
      <description><![CDATA[<p>
The Bakery has three new items posted today - a view helper for CSS/JS file inclusion, field validation, and rewriting a plugin's paths:
</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/nicehead-helper-with-autoloading-of-javascript-and-css">NiceHead helper with autoloading of javascript and css</a> - Injects CSS/JS into the head tag in your layout and autoloads css/js files for you based on current controller and action.
<li><a href="http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2">Multiple rules of validation per field in CakePHP 1.2</a> - On this article we'll take a look at multiple rules of validation per field, and how easy it is to use them on our 1.2 models.
<li><a href="http://bakery.cakephp.org/articles/view/rewrite-a-plugin-s-paths-to-look-nicer">Rewrite a plugin's paths to look nicer</a> - Plugins are a fantastic and vastly underused tool in CakePHP! But their default paths can be strange sometimes. This article describes how to rewrite a plugin's paths using bootstrap.php.
</ul>
<p>
Check out these and more great CakePHP-related tutorials on <a href="http://bakery.cakephp.org">The Bakery</a>!
</p>]]></description>
      <pubDate>Tue, 15 May 2007 11:53:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Using Unbuffered Queries and More with SQLite with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/6865</guid>
      <link>http://www.phpdeveloper.org/news/6865</link>
      <description><![CDATA[<p>
Continuing with their look at PHP5 and SQLite, DevShed has posted <a hre="http://www.devshed.com/c/a/PHP/Using-Unbuffered-Queries-and-More-with-SQLite-with-PHP-5/">part two</a> of the series - "Using Unbuffered Queries and More with SQLite with PHP 5".
</p>
<blockquote>
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.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Using-Unbuffered-Queries-and-More-with-SQLite-with-PHP-5/">take a look at</a> 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.
</p>]]></description>
      <pubDate>Mon, 11 Dec 2006 12:46:00 -0600</pubDate>
    </item>
  </channel>
</rss>
