'generate' command does not create sql tables.
'migrate' command does.
If you have a "persons" table you shoud do :
php script/generate scaffold person
Maybe the problem is only the leading "s". You should tell us more about the problem ; or maybe I'm wrong :p
Best regards.
I'm still a newbie but I guess the table name convention is mandatory. Is it hard to change you tables names ?
Wait for an experimented Akelos user response.
Depending on how many tables you have, you may want to re create your database using the Akelos convention.
For example, if you have a table named 'customer' with specific fields, then what you should do is create a new table called 'customers' with all the same fields. It shouldn't be too hard to copy all the entries from one table into another, depending on what program you are using to manage your database.
Actually you could generate the model
script/generate model Person
Then edit the Model
class Person
function __construct()
{
$this->setTableName('person'); #instead of people!
$this->init(func_get_args());
}
Now scaffold the model
script/generate scaffold Person
romero, exactly what are you trying to do?
I think if someone could contribute an 'Active Scaffold' that would be great. Right now scaffolding an existing model is the way to go IMHO. Keep in mind to modify the templates if you're about to scaffold a lot.
1 to 14 of 14