Expert wanna be
Expert wanna be

Reputation: 10624

Zend Framework, How to remove db-table?

I created db-table like this,

  #   ./zf.sh create db-table TestModel admin

and now I want to delete the TestModel .

How can I delete the db-table created.

and One more question,its also Zend Framework question,

I want to create model(db-table) under the admin module.

like /modules/admin/model/(here)

I tried like this

#./zf.sh create model TestModel admin

but it create model into applications/models

How should I do to create the model into my moduels?

Thanks!

Upvotes: 1

Views: 931

Answers (1)

RockyFord
RockyFord

Reputation: 8519

For the first part: just delete the files you don't want there is currently no way to use Zend_Tool (zf.sh) to remove components.

For your second question try this:

#./zf.sh create model TestModel -m admin

the -m tells the tool you want it to go to a module(this will create e regular model) for a DbTable Model use

#./zf.sh create dbtable TestModel test -m admin

Upvotes: 1

Related Questions