Git Product home page Git Product logo

zend-db-model-creation's Introduction

Use at your own risk! :-)

This script creates generates generic stubs of DbTable, Model, and Mapper files for Zend Framework.  It's a dirty script to get up and running quickly.
Eventually I hope to get this into a Zend_Tool Provider.

What the script does.
Uses your default database adapter from your .ini file.
Reads the databse tables and creates the files.

This has to be run in an action and then can be removed.

Create DbTables -> $db = new My_Scripts_DbTable();
Create Models -> $db = new My_Scripts_DbModel();
Create Mappers -> $db = new My_Scripts_DbMapper();

Then just run the action.  This will create the mapper and DbTable directory if needed.
The models folder must already be there.
You might have to change the models dir to be writable by the web server.

This is intended to get you about 85% - 90% there.  Not a 100% solution.  

Add tickets if you see something wrong @ http://github.com/farrelley/Zend-Db-Model-Creation/issues


-- 03/30/2010
1. The scripts now use application namespace instead of Application_  You must have a config file in application/configs/ named application.ini with appnamespace = "something here"


Shaun Farrell

zend-db-model-creation's People

Contributors

farrelley avatar

Stargazers

Luiz Felipe Kohler avatar Thiago Paes avatar Domingos Teruel avatar

Watchers

Domingos Teruel avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.