![]() |
Need Help Creating Registration/Login Form - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Need Help Creating Registration/Login Form (/showthread.php?tid=64328) Pages:
1
2
|
RE: Need Help Creating Registration/Login Form - InsiteFX - 02-09-2016 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. RE: Need Help Creating Registration/Login Form - Rumiko - 02-09-2016 (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. RE: Need Help Creating Registration/Login Form - RobertSF - 02-09-2016 (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. RE: Need Help Creating Registration/Login Form - siburny - 02-09-2016 (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/general/routing.html RE: Need Help Creating Registration/Login Form - siburny - 02-09-2016 Also, what is "/myProjectFolder"? Did you put your project in the subfolder of the site? RE: Need Help Creating Registration/Login Form - Rumiko - 02-10-2016 (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. RE: Need Help Creating Registration/Login Form - RobertSF - 02-10-2016 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!" ![]() |