-
Notifications
You must be signed in to change notification settings - Fork 2
No, it does not. You are free to do what ever you want with the generated code, as long as you at least admit that it is not made by you. You should always leave the comment about who generated the file, please read this post.
Yes, the files are absolutly your's to do whatever you want with. No strings attached. You should at least leave the @author comment. Read this!
Because it's best practice? :-) We suggest, that if you want to change the @author comment, that you leave the @author ZendModelCreator 1.0 and add something like: @author ZendModelCreator 1.0, Jane Doe, Somecompany ltd
Download the Hello World example project from our Examples page and take a look in the file "addthis.php". The minimal amount of code you will need to include and run a service is this;
ini_set('include_path', ini_get('include_path') . ':../library' . ':../application' . ':../application/models'); require_once('db/SystemConfig.php'); require_once('db/DbFactory.php'); // Set Default Database Adapter $db = DbFactory::getDefaultDbAdapter(); Zend_Db_Table_Abstract::setDefaultAdapter($db);