> php oil generate module <modulename> > php oil generate controller <modulename>/<controllername> [<action1> |<action2> |..] > php oil generate model <modulename>/<modelname> [<fieldname1>:<type1> |<fieldname2>:<type2> |..]
> php oil generate module <modulename> > php oil generate controller <modulename>\<controllername> [<action1> |<action2> |..] > php oil generate model <modulename>\<modelname> [<fieldname1>:<type1> |<fieldname2>:<type2> |..]
Yeah, I see where you're coming from. Maybe there could be a point in 'generate module', if it were to act as some sort of setup wizard:Phil Sturgeon wrote on 03/07/11 1:22 am:I am talking about the same thing as you, but ignoring the "create module" idea as there is no point. Create a module controller or module model, and instead of module/controller you just use controller and pass the module name as an extra option. LOUDLY AGREEING!
oil generate module <modulename> >> Generate module controller? [y/n] y >> Enter controller name <controllername> >> Generate module model? [y/n] y >> Enter model name <modelname>
if( ! is_dir(APPPATH.'modules/'.\Cli::option('module'))) { // make module skeleton and add to module_paths }
oil generate <modulepath>/<modulename>/<controllername>
oil g module <modulename> --path <modulepath>
php oil generate --module=<modulename> controller <controllername> [<action1> |<action2> |..]
It looks like you're new here. If you want to get involved, click one of these buttons!