News Feed
Sections




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

The Shadow Fox Network:
Creating A Scaffold-like Class in PHP or An Automatic CMS For a Table
August 17, 2006 @ 07:59:38

Of the features in Ruby on Rails, scaffolding is one of the more popular. PHP doesn't have this natively, but with the help of this new article from The Shadow Fox Network, you can create a scaffold-like class for your database table.

If you've ever seen the Creating a Weblog In 15 Minutes movie, you were undoubtedly startled at how useful and quick the scaffold command could be. But if you're still using PHP, and you love that command, then you could have a problem. Luckily, through the use of Object Oriented Programming, an equivalent solution is available, creating a full create, read, update, and delete CMS for a single table through one command.

The end result will look something like this: The end result of the scaffold class and some extra style.

The tutorial goes through the entire process, showing the code for the different parts:

  • Starting The Class
  • Listing the Rows
  • Creating a New Row
  • Inserting the Row
  • Editing a Row (Form)
  • Updating The Row
  • Deleting the Row
They conclude the tutorial with the full code listing, ready for you to cut and paste into your favorite editor and run.

0 comments voice your opinion now!
scaffold class rubyonrails automatic cms database table scaffold class rubyonrails automatic cms database table


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Artisan and Laravel Migrations

PHPClasses.org: A PHP killer feature - Streams abstraction

International PHP Magazine: Poll Question: Which is the Best Feature for PHPExcel Version 1.0.0?

Community News: Stablr Project Launched (A More Stable, PHP-Base Twitter)

Felix Geisendorfer's Blog: Migrating from WordPress to CakePHP


Community Events





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


api interview install deployment bugfix framework package release symfony library podcast community unittest language opinion laravel introduction tips zendserver series

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