Added: 2 years ago
From: Verbloten
Views: 19,198
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (16)

Sign In or Sign Up now to post a comment!
  • 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?

  • 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/regis­ter.

    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 Changing the URL for the form to tutorial/index.php/user/regis­­ter did the trick. Thank you!

  • I really like your tutorials, but smacking drives me crazy.....

  • @LimitedWings smacking? what do you mean?

  • @Verbloten English is not my native language, so I looked in a dictionary... That thing with tongue and teeth.

  • 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..

  • 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!

  • Comment removed

  • Excellent. Thanks. Very helpful!

  • @Mike01010011 Thanks!

  • just wondering but the registration variables need to be in thew view? can they be in the model?

  • @s2xi I'm not sure I understand what you mean? Which registration variables?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more