Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module option for oil g scaffold/admin #643

Open
wants to merge 1 commit into
base: 1.8/develop
Choose a base branch
from
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