Home > Backend Development > PHP Tutorial > 啊快来帮帮忙呀

啊快来帮帮忙呀

WBOY
Release: 2016-06-13 12:33:08
Original
817 people have browsed it

求助啊,快来帮帮忙呀。
最近在学习MVC开发模式。现在遇到个问题,就是自动加载类的问题。比如说我建一个控制器,AdminAction.php.然后我想让他继承同目录下的FirstAction.php.而且我想直接Class AdminAction extends FirstAction.不想先Include ‘FirstAction.php'.能不能用__autoload来实现啊。为甚ThinkPHP里面就是可以直接新建一个Action就直接写继承他的基类Action而不用引入啊。求大神帮忙开导下

MVC??类继承?自动加载
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template