CodeIgniter 不起作用
因此,我听说了 CodeIgniter,并下载了它。我尝试安装 CodeIgniter,但 CodeIgniter 不起作用。我在 application/contollers 中以文件名 new.php 编写了代码:
class New extends Contoller
{
function index()
{
echo "Hello word";
}
}
然后我进入 http://localhost /ci/index.php/New/,但我什么也没看到。我尝试了一个链接: http://localhost/ci/index.php/New/index.html php,但我没有看到任何东西。
请帮助我!
编辑:我使用uWamp,有Apache、MySQL和PHP。我的CodeIgniter版本是2.0.2。
So, I heard about CodeIgniter and I downloaded this. I tried to install CodeIgniter, but CodeIgniter doesn’t work. I writed a code in application/contollers in file name new.php:
class New extends Contoller
{
function index()
{
echo "Hello word";
}
}
Then I went in http://localhost/ci/index.php/New/, but I didn’t see anything. I tried a link: http://localhost/ci/index.php/New/index.php, but I didn’t see anything.
Help me, please!
EDIT: I use a uWamp, there are Apache, MySQL and PHP. My CodeIgniter version is 2.0.2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用的是 Codeigniter 2.x,
请确保将文件命名为小写。类名必须大写,但文件名小写。
If you are using Codeigniter 2.x then
And make sure you name the file lowercase. Class name must be uppercase, but file name lowercase.