<?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 00:00:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MaltBlue.com: Zend Framework 2 Forms - Simple and Available Everywhere]]></title>
      <guid>http://www.phpdeveloper.org/news/19411</guid>
      <link>http://www.phpdeveloper.org/news/19411</link>
      <description><![CDATA[<p>
<i>Matt Setter</i> has a new post to his site today about <a href="http://www.maltblue.com/zend-framework/simple-zend-framework-2-forms">forms in Zend Framework 2</a> including a full example on how to use them to create a form for user information (first name, last name).
</p>
<blockquote>
I think it goes without saying, forms are one of the central elements of any web-based application. They're used for everything from logging in, to searching content and managing information. Given that, they should be first-class citizens, able to be developed and reused with relative ease. [...] However, given the amount of options, configurability and flexibility required, this isn't always easy. [...] In today's post, I'm going to assume you have a basic understanding of how forms work now. [...] I'm going to show you how to create flexible, reusable forms in one module and by the power of the ServiceManager reuse them throughout your application. 
</blockquote>
<p>
He starts with the inclusion of a dependency needed for his example - the ZfcUser component (installed via Composer). He then moves on to the actual code for the form creating a reusable module, an entity class for the User and the Fieldset/Form classes for the contents of the form. He also includes the code for the controller action and the view that outputs the form itself and handles the repopulation automagically (and includes a CSRF token).
</p>
Link: http://www.maltblue.com/zend-framework/simple-zend-framework-2-forms]]></description>
      <pubDate>Thu, 04 Apr 2013 11:29:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPWomen.org: Add values to a symfony form in between save() and serialization to the database]]></title>
      <guid>http://www.phpdeveloper.org/news/18560</guid>
      <link>http://www.phpdeveloper.org/news/18560</link>
      <description><![CDATA[<p>
<i>Kim Rowan</i> has recently posted <a href="http://www.phpwomen.org/wordpress/2012/10/04/add-values-to-a-symfony-form-in-between-save-and-serialization-to-the-database">this helpful hint</a> to the PHPWomen.org site concerning the addition of values between save/serialization in Symfony (1.4) forms.
</p>
<blockquote>
OK, I have a Comment model and I want to relate Comment objects to several other different model types.  So, I need to be able to persist Comment objects in my database that relate to the author of the comment and one of a handful of other tables, for example, a blog post or a licence record, etc. 
</blockquote>
<p>
She includes the contents of her "schema.yml" definition and the code to create and display a basic form. Inside of her "executeCreate", the form's submission is handled and a "processForm" method is called and the overridden "updateObject " is used to inject the new data (a user ID) into the submission.
</p>]]></description>
      <pubDate>Fri, 05 Oct 2012 08:55:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: Form Goodness in Symfony 2.1]]></title>
      <guid>http://www.phpdeveloper.org/news/18291</guid>
      <link>http://www.phpdeveloper.org/news/18291</link>
      <description><![CDATA[<p>
On the Symfony blog there's a new post from <i>Bernhard Schussek</i> about some of the changes that have <a href="http://symfony.com/blog/form-goodness-in-symfony-2-1">happened in the Forms component</a> of the Symfony 2 framework (in version 2.1).
</p>
<blockquote>
Those of you who already upgraded to Symfony 2.1 Beta probably noticed that the new version comes with many backwards compatibility breaks in the Form component. Many of you probably ask yourselves: Why? The simple answer is that the Form component is one of the most complex components in Symfony at all. 
</blockquote>
<p>
They list out some of the improvements (plus code showing then at work) for changes like:
</p>
<ul>
<li>No more bindRequest()
<li>Custom field constraints
<li>Error mapping fu
<li>Collection improvements
</ul>]]></description>
      <pubDate>Mon, 30 Jul 2012 13:41:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matt Cockayne: Bootstrapping ZF2 Forms]]></title>
      <guid>http://www.phpdeveloper.org/news/18260</guid>
      <link>http://www.phpdeveloper.org/news/18260</link>
      <description><![CDATA[<p>
In <a href="http://devincharge.com/bootstrapping-zf2-forms/">this recent post</a> to his site, <i>Matt Cockayne</i> shows you how to bootstrap your forms in a Zend Framework 2 application (as defined in a class).
</p>
<blockquote>
A brand spanking new Forms component has been rolled out with <a href="https://github.com/zendframework/zf2">ZF2</a>. The long and the short of this new component meant that I had the opportunity to hand roll a new way of making my forms work with <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>. So, a little tinkering, a quick <a href="https://github.com/zendframework/zf2/pull/1893">pull request</a> to <a href="https://github.com/zendframework/zf2">ZF2</a> to allow the definition of arbitrary options and I <a href="https://github.com/zucchi/Zucchi/tree/master/src/Zucchi/Form/View/Helper">came up with some useful View Helpers</a> that can be dropped into a project and used.
</blockquote>
<p>
He includes the code for the sample class ("MyForm") and highlights the "bootstrap" portions of each element's configuration and walks you through some other handy features of his helpers: auto-rendering forms, a "row" helper and a "collection" helper to help organize the form structure.
</p>]]></description>
      <pubDate>Mon, 23 Jul 2012 11:07:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: ZF2 Forms in Beta5]]></title>
      <guid>http://www.phpdeveloper.org/news/18198</guid>
      <link>http://www.phpdeveloper.org/news/18198</link>
      <description><![CDATA[<p>
In <a href="http://mwop.net/blog/2012-07-02-zf2-beta5-forms.html">this new post</a> to his blog, <i>Matthew Weier O'Phinney</i> about some of the recent updates in the latest beta (beta5) of the Zend Framework 2's "Forms" component.
</p>
<blockquote>
Forms are a nightmare for web development. They break the concept of separation of concerns: they have a display aspect (the actual HTML form), they have a validation aspect and the two mix, as you need to display validation error messages. On top of that, the submitted data is often directly related to your domain models, causing more issues. [...] Add to this that the validation logic may be re-usable outside of a forms context, and you've got a rather complex problem.
</blockquote>
<p>
He talks about the newly-rewritten form component along with the new InputFilter to accompany it. He includes an example of using this new component - making a User form that, based off of some annotation rules, does some validation on the property values and things like "required" and custom types. He also talks about some of the other features included in the new package like hydration, complex annotation support and tools to work with collections.
</p>
<p>
You can download this latest beta release <a href="http://packages.zendframework.com/">from the packages.zendframework.com</a> site.
</p>]]></description>
      <pubDate>Mon, 09 Jul 2012 09:34:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Zend Framework 2 beta 4 released]]></title>
      <guid>http://www.phpdeveloper.org/news/18013</guid>
      <link>http://www.phpdeveloper.org/news/18013</link>
      <description><![CDATA[<p>
As <i>Rob Allen</i> mentions in <a href="http://akrabat.com/zend-framework-2/zend-framework-2-beta-4-released/">his latest post</a>, the latest revision of the Zend Framework v2 has been released and is ready for testing - <a href="http://www.zendframework.com/zf2/blog/entry/Zend-Framework-2-0-0beta4-Released">Zend Framework 2 beta4</a>.
</p>
<blockquote>
Earlier this week, we got <a href="http://www.zendframework.com/zf2/blog/entry/Zend-Framework-2-0-0beta4-Released">beta 4 of Zend Framework 2</a> out of the door. This version has some very significant improvements in it which mean that if you're following along at home with the betas, then you're going to be doing a bit of updating! Most of the B/C breaks are noted in <a href="http://zend-framework-community.634137.n4.nabble.com/ServiceManager-MVC-integration-merged-with-master-BC-breaking-changes-td4643952.html">this thread</a>.
</blockquote>
<p>
He's also made updates to his <a href="http://akrabat.com/zend-framework-2-tutorial/">Zend Framework 2 tutorial</a> to match these most recent changes. He points out three key new features - the ZendServiceManager, ZendForm and ZendInputFilter updates and the introduction of <a href="http://getcomposer.org">Composer</a> support to pull packages.
</p>]]></description>
      <pubDate>Mon, 28 May 2012 19:42:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Easy Form Generation Using FuelPHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17672</guid>
      <link>http://www.phpdeveloper.org/news/17672</link>
      <description><![CDATA[<p>
On the NetTuts.com site today there's a new tutorial from <i>Sahan Lakshitha</i> about <a href="http://net.tutsplus.com/tutorials/php/easy-form-generation-using-fuelphp/">creating forms in FuelPHP</a>, the PHP 5.3-centric framework.
</p>
<blockquote>
Thanks to <a href="http://fuelphp.com/">FuelPHP</a>'s <a href="http://docs.fuelphp.com/classes/fieldset.html">fieldset</a> class, working with forms couldn't be easier. With a few lines of code, you can easily generate and validate a form. Today, we're going to learn how to do just that!
</blockquote>
<p>
He starts with guiding you through a simple install of the FuelPHP framework and configuring it to connect to a MySQL database. He shows how to set up a model, specify its properties and creating a controller to handle the user interaction. Using the definitions in the model, FuelPHP can automatically generate a form, complete with default options and some validation on the field (things like "required", "valid_url" and "max_length"). There's also code included showing how to edit current posts and listing out the complete post list.
</p>]]></description>
      <pubDate>Wed, 14 Mar 2012 10:05:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Form Validation with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17660</guid>
      <link>http://www.phpdeveloper.org/news/17660</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing how to <a href="http://phpmaster.com/form-validation-with-php/">do some form validation</a> using some basic PHP (no external libraries or tools here). This is a beginner level tutorial to help you get familiar with the concepts behind doing validation (and 
</p>
<blockquote>
In this article you'll construct and validate a simple form using HTML and PHP. The form is created using HTML and validation and processing of the form's contents is done with PHP. The goal is to teach you some basic HTML form elements and how their data is accessible to you in your PHP scripts.
</blockquote>
<p>
They start with the form itself, a basic setup with various kinds of fields - text, select, radio and a checkbox. Both the HTML markup and the PHP to do the validation is included. They check for things like "not empty", "must select one" and optional fields. Be sure to read <a href="http://phpmaster.com/form-validation-with-php/#comments">the comments</a> for some good tips on filtering the form's input too.
</p>]]></description>
      <pubDate>Mon, 12 Mar 2012 12:17:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Mozarts: Symfony2 Form Architecture]]></title>
      <guid>http://www.phpdeveloper.org/news/17639</guid>
      <link>http://www.phpdeveloper.org/news/17639</link>
      <description><![CDATA[<p>
In <a href="http://webmozarts.com/2012/03/06/symfony2-form-architecture/">this new post</a> to the Web Mozarts site, <i>Bernhard</i> talks about the architecture behind the current Symfony2 forms implementation and how it handles the requests your forms make.
</p>
<blockquote>
<a href="http://symfony.com/">Symfony2</a> features a brand-new <a href="https://github.com/symfony/Form">Form component</a> that, to my knowledge, supersedes most existing PHP form libraries in functionality and extensibility (not counting the still lacking, native JavaScript support). [...] The purpose of this post is to demonstrate that the Symfony2 Form component is perfectly suited for this requirement. Symfony2-specific functionality can be unplugged, leaving only the raw core dealing with form processing and abstraction.
</blockquote>
<p>
The post is broken up into several different sections, each detailing a different aspect of this Forms functionality:
</p>
<ul>
<li>It's influences from other frameworks
<li>Key aspects it provides
<li>Abstraction (reusable code)
<li>Extensibility
<li>Compositionality
<li>Separation of Concerns
<li>Model Binding
<li>Dynamic Behavior
</ul>
<p>
Both a <a href="http://webmozarts.com/wp-content/uploads/2012/03/high-level-architecture.png">high-level architecture</a> and <a href="http://webmozarts.com/wp-content/uploads/2012/03/class-diagram2.png">low-level architecture</a> are provided, showing you the internal flow behind the form handling. You can find out more about this component <a href="http://symfony.com/doc/current/book/forms.html">in the Symfony manual</a> or peek into <a href="https://github.com/symfony/Form">the code on github</a>.
</p>]]></description>
      <pubDate>Wed, 07 Mar 2012 11:13:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: WordPress Plugin Development]]></title>
      <guid>http://www.phpdeveloper.org/news/17561</guid>
      <link>http://www.phpdeveloper.org/news/17561</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing how you can <a href="http://phpmaster.com/wordpress-plugin-development/">create a custom WordPress plugin</a> for the popular PHP-based blogging/CMS tool.
</p>
<blockquote>
If you've ever used WordPress to build a site quickly, chances are you've used one of the many plugins that are offered to extend the functionality of this popular blogging software. Plugins are one of the many things that make WordPress so attractive. [...] There are times, however, when you can't quite find what you need from existing plugins. This article will show you how to create your own WordPress plugins by walking you through an example to display some text using a widget in a the sidebar.
</blockquote>
<p>
He walks you through all of the steps you'll need to create the plugin - making the main plugin file (definition) and using some of the methods available to create the functionality: update, form, widget and the constructor to set it all up.
</p>]]></description>
      <pubDate>Mon, 20 Feb 2012 10:50:39 -0600</pubDate>
    </item>
  </channel>
</rss>
