[英]Is it possible to extend a library class extend MY_Controller class
是否可以在应用程序-核心文件夹中扩展库类或扩展MY_Controller类。
Yes you can. 是的你可以。 You can even totally replace them, but are rarely needed.
您甚至可以完全替换它们,但是很少需要。 See this manual: https://ellislab.com/codeigniter/user-guide/general/core_classes.html (For Legacy CodeIgniter)
请参阅此手册: https : //ellislab.com/codeigniter/user-guide/general/core_classes.html (对于旧版CodeIgniter)
Yes. 是。 There are several approaches.
有几种方法。 This question has been asked and answered many times on Stack Overflow.
在Stack Overflow上已经多次询问并回答了这个问题。 Search this site for extending CI_Controller
搜索此站点以扩展CI_Controller
This page discusses some of the options. 此页面讨论了一些选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.