Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #1 from bitdeli-chef/master

Add a Bitdeli Badge to README
Failed to load latest commit information.
zf1_generator Fix: When generating model for the type "Primary key" and "Not null"
zf1_library/App/Model Fixed problem when inserting a record in the database.



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

Install the ZF1 Quick Start:

git clone

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)

Bitdeli Badge

Something went wrong with that request. Please try again.