我是codeigniter 3.x的新手,在我写的时候是codeigniter 3.x
class Auth extends CI_Controller {
public function __construct() {
parent::__construct();
echo "ya";
}
}
它向我显示错误
404 Page Not Found
The page you requested was not found.
当我写
class Auth extends CI_Controller {
public function __construct() {
parent::__construct();
echo "ya";
}
public function index() {
echo "aya";exit;
}
}
它工作正常并将输出显示为 {yaaya}。谁能让我知道你是这个吗?