Zend Forms Module Include Paths

后端 未结 3 1565
暗喜
暗喜 2021-01-07 06:35

I\'m using Zend 1.8.4 and setting up a simple form test. My form class is located in \'./application/forms/SectorSearch.php\' and the class name is



        
3条回答
  •  青春惊慌失措
    2021-01-07 07:09

    Zend Framework interprets underscores in Class names as folders. If you are manually adding the application/forms folder to the include path, then you should name your class FormSectorSearch (and the filename FormSectorSearch.php) instead of Form_SectorSearch. Otherwise you would only add the application folder to the include path and then named the folder Form instead of forms.

提交回复
热议问题