MVC 文件位置和函数位置。 PHP Zend
我刚刚找到了一份与 MVC 相关的工作,他们知道我不知道,但会帮助我学习。我对我的 PHP 相当有信心,或者直到现在我对 MVC 有一些疑问,但我认为我会很快掌握,但这看起来比我预期的更深入。我有几个问题..
- 他们是否有一种更简单的方法来判断哪个 PHP 文件是某个类,而无需查看其内容?使用netbeans。
- 我了解它所扩展的类的继承,但某些函数从它们所在的目录中访问不同的类,并且与全局包含的 Zend 库不同。他们是否可以更轻松地找到这些课程?
- 所有模块都有自己的 MVC 框架及其 API 和核心文件。某些模块文件将扩展(例如)Application/Library/Engine/Engine.php。他们创建并实例化,然后调用 example.php 和类的未知方法 getApi($param,$param) 。我在任何核心类、本地类或 zend 中都找不到 getApi 函数。我是不是找错了地方?我可以更直接地了解该类继承的内容吗?
我在这里很迷茫,但我会继续努力,直到我弄清楚。谢谢
I just got a job where i would be working with MVC and they knew i didn't know it but would help me learn. I am fairly confident with my PHP or i was until now and had some questions about MVC but figured i would catch on quickly but this is looking like its more in depth than i expected. And i have a few questions..
- Is their an easier way to tell which PHP file is a certain class without having to view its contents? Using netbeans.
- I understand the inheritance of the class that it is extends but some functions access different classes out of the directory they are in and are different from the global included Zend library. Is their a way to find these classes easier?
- All modules have their own MVC framework with their API and core files for them. Some module files will extend(for example) the Application/Library/Engine/Engine.php. They create and instance and then call a unknown method getApi($param,$param) to the example.php and the class. I cannot find the getApi function in any core class, local classes, or zend. Am i looking in the incorrect places? Can i have a more straightforward view on what the class inherits?
Im pretty lost here but i will keep trying until i figure it out. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想我在这里帮不了什么忙,对此感到抱歉。
I guess i am not a big help here, sorry about that.