Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/oil/generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,10 @@ <h3 id="scaffolding">Scaffolding</h3>
so the code will actually work after writing the command.
</p>

<p>
If you wish to generate in modules, simply supply <code>--module=&lt;modulename&gt;</code> option.
</p>

<pre class="cli"><code>$ php oil g scaffold monkey name:string description:text
Created model: APPPATH/classes/model/monkey.php
Created migration: APPPATH/migrations/003_create_monkeys.php
Expand Down Expand Up @@ -703,6 +707,10 @@ <h3 id="admin">Admin scaffolding</h3>
To generate in subdirectories name the prefix the model's name accordingly.
</p>

<p>
If you wish to generate in modules, simply supply <code>--module=&lt;modulename&gt;</code> option.
</p>

<pre class="cli"><code>$ php oil g admin project_entry title:string abstract:text full_text:text project_id:int is_draft:int order:int -s
Creating migration: APPPATH/migrations/012_create_project_entries.php
Creating model: APPPATH/classes/model/project/entry.php
Expand Down