-
Notifications
You must be signed in to change notification settings - Fork 1
Console Overview
Sanjoy Dey edited this page Oct 31, 2015
·
1 revision
Cygnite CLI build on popular Symfony console component. It provides you helpful commands to make your development faster.
php cygnite generate:crud controller table_name database //plain php layout, views
php cygnite generate:crud controller table_name database --template// twig templates
or
php cygnite generate:crud controller table_name // Default database connection
php cygnite generate:crud controller table_name --template // twig templates for view page php cygnite migrate:init table_name
php cygnite migrate up
php cygnite migrate down php cygnite generate:form table_name database
or
php cygnite generate:form table_name // Default database connectionBelow command will generate basic ProductController into your controllers folder.
php cygnite controller:create productBelow command will generate resource ProductController into your controllers folder.
php cygnite controller:create product --resourceBelow command will generate model class called ProductCategory into your models directory.
php cygnite model:create product_category directoryAbove command "product_category" represent table name and "directory" represent as database.
If you want to generate model against your default database connection then we can also make above shorter.
php cygnite model:create product_categoryAbove features are driven by Cygnite CLI tool to make your job very easy.