Need Help Creating Registration/Login Form |
In Windows you need to edit the windows host file in c:\Windows\System32\drivers\etc\host use notepad to edit it.
IP (IPv6), using 128 bits for the address such as 172.16.254.1 (IPv4), and 2001:db8:0:1234:0:567:8:1 (IPv6). 127.0.0.1 localhost ::1 localhost If it has a # in front of it remove it. I have Administrator rights on my system but on your the file may be hidden. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(02-09-2016, 11:03 AM)InsiteFX Wrote: In Windows you need to edit the windows host file in c:\Windows\System32\drivers\etc\host use notepad to edit it. I should've added that I'm working on OS X. Sorry about that. (02-09-2016, 11:13 AM)Rumiko Wrote: I should've added that I'm working on OS X. Sorry about that. I suggest you download something very stable and automatic, like WordPress, and install it. If you get the same error message, then the issue is your server configuration, and for that, you'd probably do better in a Mac forum. I can't help more because I hardly know anything about Macs.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
(02-09-2016, 10:12 AM)Rumiko Wrote: I know it's accessing index.php (which right now is just whatever Code Igniter has for it as code by default) because the "Index File" config is set to : $config['index_page'] = 'index.php'; index_page is your the name of your index file (default is index.php), but can be empty if you configured "url rewrite". This never changes once you started using the framework. What goes after index.php is usually the page that is being requested in the format /index.php/CONTROLLER_NAME/METHOD_NAME/ In your case you have "User" controller and "register" method (or at least you are trying to request/redirect to). Read more here: http://www.codeigniter.com/user_guide/ge...uting.html
Also, what is "/myProjectFolder"? Did you put your project in the subfolder of the site?
(02-09-2016, 02:44 PM)siburny Wrote: index_page is your the name of your index file (default is index.php), but can be empty if you configured "url rewrite". This never changes once you started using the framework. Thank you for clearing that up. That was bothering me a lot! It makes sense now. Also, thanks to your explanation, I figured out the problem. It was trying to access the "User" controller, but the controller was incorrectly named. So, of course, it wasn't detected when I submitted the form. What a silly mistake.
I'm glad to hear you got it working! And no worries -- most of our mistakes are silly. That's why long time coders have such flat foreheads. It's from smacking themselves. "Oh, my god, I can't believe I did that!"
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
|
Welcome Guest, Not a member yet? Register Sign In |