Zend Framework Automatic Model Generator for Mysql
I want to create a model with zf tool. But "zf create model xxx" command is just an empty class. What must be a path to .sq开发者_运维技巧l file?
I think you can use Zodeken it is very good and saved my time , it is easy to use http://code.google.com/p/zodeken/ Hope you find wht your looking for !!!
You may need to configure your adapter first.
Use zf configure db-adapter
to do so.
Then you should be able to get your model skeleton ready-to-use.
Check out the manual page, there are all the informations you need to complete your task.
Edit:
zf configure db-adapter "adapter=PDO_MYSQL&dbname=mydb&host=localhost&username=root&password production
To configure your db adapter with the cli. You can also do it by hand by editing application.ini
Be sure the resources.db is set or it won't work.
精彩评论