开发者

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

开发者 https://www.devze.com 2023-03-03 13:31 出处:网络
Inside \'models\' directory I\'ve created another called \'mappers\'. 开发者_Go百科I wish to add a mapper there, however I can\'t find anywhere how to accomplish this with the zend_tool cli.

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

开发者_Go百科

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
0

精彩评论

暂无评论...
验证码 换一张
取 消