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

FuelPHP:
Oil Migrations, Tasks and Console (Screencast)
Mar 15, 2011 @ 16:31:39

Phil Sturgeon has put together a screencast showing off a few of the features of the Fuel PHP framework like migrations, tasks and the console the Oil tool provides.

In this video I'm going to be demonstrating migrations which I touched on in the last video but I felt I should go into them in more depth. Migrations [...] are essentially a way to stage changes for your database in a way that means the changes can be independent from the schema as a whole.

He walks you through the creation of a migration with the help of the Oil command line tool. The generated classes include "up" and "down" methods for the creation and rollback of your changes. He shows the process to create a simple task and how to use the built-in console to interactively work with the framework. You can find out more about Fuel on the Fuel documentation section of the project's site.

tagged: fuelphp framework oil console commandline tasks migrations

Link:


Trending Topics: