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

Scaffolding the rest of our project

Now that the post administration panel is working and inside the blog module, it is time to generate our other models.

Scaffolding categories

Let's first take care of the Category model.

Generating files

This step is quite straightforward; as we did previously, we will use the oil command to generate our scaffold:

php oil generate admin/orm category name:string -s

Note that we added the -s (s for skip) parameter, as some files have already been generated previously and we don't want to replace them. This command line should output:

Creating migration: APPPATH/migrations/002_create_categories.php
Creating model: APPPATH/classes/model/category.php
Creating controller: APPPATH/classes/controller/admin/category.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