How can I reduce my Class Name in Zend to call it from any where in application?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to follow Zend file naming convention . I have Object.php file with a class and a function in it. MyZendProject->application->models->Test->Object.php class Model_Test_Object { public function test() { echo "Test"; } } Now I want to access above test function in following file but it is not finding it. MyZendProject->application->modules->test->controllers->TestController.php $testModel = new Model_Test_Object(); $testModel->test(); But when I name the class Application_Model_Test_Object in Object.php and call it in TestController