0

I had a code written in CI 2+ and now i am moving to CI 3 . I have one controller with the name of 'user' , when i try to access the function i always get this error

404 Page Not Found

The page you requested was not found.

where as code is this

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

 class User extends CI_Controller {

public function t2()
{

    echo "test";
}

}

Where as if i change the controller name , i can access the function . Can anyone tell me whats the reason behind this ?

1 Answer 1

2

in CI 3 both controller file name & class name must be start with capital later . so check it first.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.