[英]codeigniter controllers .php not found
I am using the CI default .htaccess
and the CI dynamic base_url()
. 我正在使用CI默认
.htaccess
和CI动态base_url()
。
My issue is that I have the deploy.php in the controllers folder but when I try and access via www.domain.com/deploy.php
I get 404 not found why? 我的问题是我在controllers文件夹中有deploy.php ,但是当我尝试通过
www.domain.com/deploy.php
访问时,却找不到404的原因?
Codeigniter controllers are accessed like that www.domain.com/deploy
(by class name in lower case, file name must match classname inside in lower case and class must extend CI_Controller
) 可以像访问
www.domain.com/deploy
一样访问Codeigniter控制器(按小写的类名,文件名必须与小写的类名匹配,并且类必须扩展CI_Controller
)
The file you mention is nothing like that, so it is better to be called from the folder where index.php
resides. 您提到的文件并非如此,因此最好从
index.php
所在的文件夹中调用该文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.