Nice tutorials man! So far I believe I have done everything just like you, but when I try to submit to check if the validator works, I get redirected to 404 - The requested URL /tutorial/user/register/ was not found on this server.
@M4S4HIRO Sounds like you didn't get rid of index.php perhaps? What is the URL of the register page that shows the form? /tutorial/user/register I would guess not.... so you could remove index.php or change the URL for the form POST to /tutorial/index.php/user/register.
If that's not the problem and the problem is that your URL is literally "/tutorial/user/register" then in the form open line make sure you put base_url() . '/tutorial/user/register'....
Just to help people that were stuck where I was. ..
This didn't work for me until I dropped the $base_url inside the form_open() function, as I had a base URL set in my config file already. Per the CI documentation, form_open "Creates an opening form tag with a base URL built from your config preferences", so entering it again for me was redundant.
It worked once I wrote it like this: echo form_open('user/register');
Can somebody help me?
I've entered the code as shown (changed to parent::controller() to parent::__construct()
Now, the registration page loaded fine, but when I click submit (register) button, I get the error message "object not found". What am I doing wrong?
freestylerstyler 1 month ago
Nice tutorials man! So far I believe I have done everything just like you, but when I try to submit to check if the validator works, I get redirected to 404 - The requested URL /tutorial/user/register/ was not found on this server.
M4S4HIRO 6 months ago
@M4S4HIRO Sounds like you didn't get rid of index.php perhaps? What is the URL of the register page that shows the form? /tutorial/user/register I would guess not.... so you could remove index.php or change the URL for the form POST to /tutorial/index.php/user/register.
If that's not the problem and the problem is that your URL is literally "/tutorial/user/register" then in the form open line make sure you put base_url() . '/tutorial/user/register'....
Hopefully something here helped?
Verbloten 6 months ago
@Verbloten Changing the URL for the form to tutorial/index.php/user/register did the trick. Thank you!
M4S4HIRO 6 months ago
I really like your tutorials, but smacking drives me crazy.....
LimitedWings 7 months ago
@LimitedWings smacking? what do you mean?
Verbloten 7 months ago
@Verbloten English is not my native language, so I looked in a dictionary... That thing with tongue and teeth.
LimitedWings 7 months ago
Sir i have questions?? What is the difference if you are not using a codeigniter framework?
What is the purpose if you are using codeigniter framework
Can affect my code if im not using any PHP framework..
Thnx in advance..
MrOnetwodave 10 months ago
Just to help people that were stuck where I was. ..
This didn't work for me until I dropped the $base_url inside the form_open() function, as I had a base URL set in my config file already. Per the CI documentation, form_open "Creates an opening form tag with a base URL built from your config preferences", so entering it again for me was redundant.
It worked once I wrote it like this: echo form_open('user/register');
Thanks for the tutorials. I'm learning so much!
ufg22 1 year ago
Comment removed
ufg22 1 year ago
This has been flagged as spam show
Heck out the thousands of profiles for Naughty women mworld5.info
TONIACLARA 1 year ago
This has been flagged as spam show
If you are luck you can find an Asain women gettop5.info
KeeneBarajas 1 year ago
Excellent. Thanks. Very helpful!
Mike01010011 1 year ago
@Mike01010011 Thanks!
Verbloten 1 year ago
just wondering but the registration variables need to be in thew view? can they be in the model?
s2xi 1 year ago
@s2xi I'm not sure I understand what you mean? Which registration variables?
Verbloten 1 year ago