简体   繁体   中英

Zend_Tool - Can we use it to create a model inside a specific directory?

Inside 'models' directory I've created another called 'mappers'.

I wish to add a mapper there, however I can't find anywhere how to accomplish this with the zend_tool cli.

Does anyone know how to do it, or even if it's possible ?

I think mapper isn't a registered name in zend tool like dbtable or form.

So you should simply create another model in model directory and move it to your mapper directory. Don't forget to rename the class to something like

MyModule_Model_Mapper_MyMapper

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM