Zend framework (1.7.5): how to change controller directory

前端 未结 2 1071
后悔当初
后悔当初 2021-01-20 00:58

Using Zend Framework I want to use controllers stored in a directory which is not default.

What I\'m trying to achieve is that if the requested path begins with admi

2条回答
  •  無奈伤痛
    2021-01-20 01:05

    You could use the module directory structure. Create the directory structure

    application
      default
        controllers
        views
        models
      admin
        controllers
        views
        models
    

    For more info check out the docs on Using a Conventional Modular Directory Structure

提交回复
热议问题