Skip to content
hussfelt edited this page Jul 20, 2012 · 5 revisions

Does the generated files from Zend Model Creator fall under the GPL licence?

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.

Can I edit the comments in the created files?

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!

Why leave the @author comment?

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

The manual is not complete, what code do I need to get started?

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);