Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Newbie Question
#2

A few things to check:
Did you setup your MAMP correctly?
Is localhost in your hosts file?
Did you set the $config['base_url'] to the correct path in your application/config.php file?
Do your controllers have names with first-caps?
If your form is pointing to a controller named "form", then there must be a method "index" inside it. That's how CI works: if you call a controller without a method name, it assumes you mean the index method. It's better practice to point your form to a controller that has a more meaningful name. In this case Login.php. Create a method ( = function) called "process_form".
In your view, point to this method: echo form_open('login/process_form');

I hope this will help you further.
Reply


Messages In This Thread
CodeIgniter Newbie Question - by beshad - 02-27-2016, 05:32 PM
RE: CodeIgniter Newbie Question - by Wouter60 - 02-28-2016, 11:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB