News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Easy Form Generation Using FuelPHP
March 14, 2012 @ 10:05:17

On the NetTuts.com site today there's a new tutorial from Sahan Lakshitha about creating forms in FuelPHP, the PHP 5.3-centric framework.

Thanks to FuelPHP's fieldset 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!

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.

0 comments voice your opinion now!
form generation fuelphp tutorial fieldset framework


blog comments powered by Disqus

Similar Posts

WebReference.com: Class Inheritance with PHP

Felix Geisendörfer's Blog: Learning from the CakePHP Source Code (Part 1)

PHP Town Hall: Episode #15: The Joomla Framework and the Ongoing History of PSR-4

The Bakery: Writing an easy to use A/B test helper with CakePHP and jquery

PHP-Coding-Practices.com: How To Generate Monochromatic CSS Stylesheets Within Seconds Using PHP


Community Events











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


component facebook overview symfony2 framework install hack composer database application performance release opinion podcast package security hhvm unittest introduction language

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