Codeigniter - 未指定输入文件 [英] Codeigniter - no input file specified

查看:29
本文介绍了Codeigniter - 未指定输入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Codeigniter 的初学者,我看到了一个 CI 教程,只是想做一件简单的事情.我下载了 CI 并将此文件添加到控制器目录,但它不起作用.

当我尝试使用 http://..../index.php/访问它时站点我得到了输出......没有指定输入文件"......顺便说一下,我将文件命名为site.php

解决方案

我在这里找到了这个问题的答案......问题是托管服务器......我感谢所有尝试过的人......希望这会帮助他人

Godaddy 安装提示

I am a beginner in Codeigniter and I saw a CI tutorial and was just trying to do a simple thing. I downloaded the CI and added this file to controller directory, but it won't work.

<?php

class site extends CI_Controller
{
    public function index()
    {
        echo "Hello World";
    }

    function dosomething()
    {
        echo "Do Something";
    }   
}    
?>

When I try to access it using http://..../index.php/site I get the output ... "no input file specified" .... by the way, I named the file site.php

解决方案

I found the answer to this question here..... The problem was hosting server... I thank all who tried .... Hope this will help others

Godaddy Installation Tips

这篇关于Codeigniter - 未指定输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆