How to indicate zend framework where my custom classes are

前端 未结 4 832
不知归路
不知归路 2020-12-16 05:38

I have a folder with custom classes in a ZF 1.10 application. The folder is located in /library. How can I tell ZF where they are? Both application.ini and index.php set the

4条回答
  •  自闭症患者
    2020-12-16 06:02

    Add your custom library to composer.json:

    "autoload": {
    "psr-0": {"Your": "vendor/My/library"}
    },
    

    and run composer update

提交回复
热议问题