methods not prefixed with an underscore will * @see https://codeigniter.comuser_guide/general/urls.htmlpublic function index() $this->load->view('welcome_message');然而,当我<e
我扩展了CodeIgniter控制器,在Application/Core文件夹中添加了MY_Controller.php。它工作得很好,但是现在当我在error_404.php页面上添加Application/errors中的以下代码时,会出现错误。<?>Fatal error: Class 'CI_Controller' not found in path\to\system\core\CodeIgniter.php on
我今天使用这个链接从github克隆了一个Codeigniter的副本:。我当前正在运行MAMP安装程序,以便指向我的htdocs文件夹。我的根文件夹叫做“time”。当我访问时,我确实看到了Codeigniter欢迎页面。此外,即使根目录中没有.htaccess文件,我也可以访问并看到相同的欢迎页面。public function test() echo 'Test'
我已经使用CodeIgniter很长一段时间了,我目前正在为一个客户端做一个项目,这个项目想要一个定制的404页面。一切都很好,404_override工作得很好。当访问者试图访问一篇不存在的文章时,我会遇到问题,我想调用show_404()函数,但这向我展示了"out of box" 404页,而不是用404_override编写的。