kamalbhai
kamalbhai

Reputation: 520

Unable to display a form - Codeigniter

I was trying out the tutorial on this link to create a form :

http://codeigniter.com/user_guide/libraries/form_validation.html

But when I type in the url(after creating the files of form.php, formsuccess.php and myform.php) localhost/codeigniter/index.php/form, I get the error of 404 Page Not Found.

I am new to Codeigniter. Can someone help me figure out the error ? Thanks and Regards.

Upvotes: 0

Views: 124

Answers (1)

Jose Vega
Jose Vega

Reputation: 10258

Codeigniter is an MVC framework so url hierarchy is processed a little different.

Can you access localhost/codeigniter/index.php?

No: Do you have the correct .htaccess files in place?

Yes: In your controller folder, do you have a file named Form.php with the following code:

class Form extends CI_Controller {
    function index() {

    }
}

Upvotes: 1

Related Questions