Search code examples
zend-frameworkzend-tool

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 ?


Solution

  • 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