Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil
Generating Scaffold in Admin Section
mikepmtl
July 2013
I was trying to create a scaffold inside of an existing admin section.
The results where not exactly what I thought they would be.
oil g scaffold admin_teachers salutation:varchar[10] first:varchar[32].......
Is this not the right syntax?
mikepmtl
July 2013
I think I found the answer myself running just oil g.
oil g scaffold/template_subfolder <modelname> [<fieldname1>:<type1> |<fieldname2>:<type2> |..]
So should have been: oil g scaffold/admin teachers
salutation:varchar[10] first:varchar[32].....
Will try in next model. :)
mikepmtl
July 2013
Correction
The above was incorrect for an admin section.
It should be:
oil g admin mymodelname var1:text var2:text -f
You need to force it because oil will rewrite over the base.php file and the admin controller etc.
If you have modified those you can use the --overwrite
MoakDesigns
April 2014
Why would you want to overwrite the admin controller? Why not use the skip argument?
KoolCoder
April 2014
+1 for -s
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
KoolCoder
April 2014
mikepmtl
July 2013
MoakDesigns
April 2014