Now that the post administration panel is working and inside the blog module, it is time to generate our other models.
Let's first take care of the Category model.
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 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 ...