Generating Models And Crud With A Command?

Hi,

is there a way to call the gii stuff from a command?

  • I want to generate models for all given database tables (with a specific template I already created)

  • After that i want to generate the CRUD stuff (with a specific template, too) for all existing models

Is there a simple way to accomplish that?

Why? Because I want to regenerate everything as fast as possible, if we extend the templates later.

Thanks in advance!

$./yiic shell

It’s deprecated and has no option to preselect a template or something like that.