Models Generator for the Zend Framework 1 (ZF1).
This script aims to automate the creation and access of the database models.
To facilitate access to the elements of a data model, two abstract classes have been created and are available to perform this task.
Git clone
Install the ZF1 Models Generator:
git clone git@github.com:giovanniramos/zf_generate_models.git
Install the ZF1 Quick Start:
git clone git@github.com:giovanniramos/zf_quickstart.git
Installation structure
<project name>/
|-- application/
|-- library/
| |-- App/
| | `-- Model/
| | |-- Mapper/
| | | `-- Abstract.php
| | `-- Abstract.php
|-- public/
`-- scripts/
`-- zf1_generator/
Copy the folder zf1_generator
to the directory:
<project name>/scripts/
Copy the folder App
located in zf1_library
, and paste in:
<project name>/library
Add to your application.ini
the following Namespaces:
autoloaderNamespaces[] = "App"
To run and test the script, go to the url:
<host name>/scripts/zf1_generator
And generate the "Models" the Guestbook database, which is present in the package ZF1 Quick Start.
Then run the application!
That's all you need to do.
Copyright (c) 2013 Giovanni Ramos
Distributed under the MIT License (MIT-LICENSE.txt)