O'Reilly logo

FuelPHP Application Development Blueprints by Sébastien Drouyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating the sample application

In order to test our packages, we will create a simple application that will handle dummy items. Just to be perfectly clear, we are not interested here by the ultimate goal of the application; this is just a test application. Most of the work will be done inside the packages. The user interface and the model will therefore be very simple and will be fully generated by the scaffold command of the oil utility. The packages will later be connected to the creation and edition features to determine whether or not the visitor is human.

First, generate the scaffold using the following command:

php oil generate scaffold/crud item name:string

It will print the following output:

Creating migration: APPPATH/migrations/001_create_items.php ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required