Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

CodeIgniter Registration Form Part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
44,026
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 30, 2009

This is Part 1 of what will probably end up as at least 3 parts on creating a User Registration form in CodeIgniter. It shows CodeIgniter features such as form validation, form helpers etc.
This particular video shows the making of a form using the CodeIgniter Form Helper.

CodeIgniter can be found at http://www.codeigniter.com

More CodeIgniter tutorials, all in one place, at http://www.simplycodeigniter.com.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Verbloten)

  • Hi, thanks for your series. I've begun working through them and have run into some early trouble. Is there anything in the 2.1.0 release that would affect this tutorial?

  • @JABevan Hi mate - yes there is... The way models and controllers are declared has changed slightly. Also the constructor is slightly different. Have a read of this codeigniter [dot] com/user_guide/installation/up­grade_200.html to see what you need to do differently...

  • @Verbloten Thanks man. I was able to make the updates; however, now I'm receiving the same error @lyndr29 received below:

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: User::$view_data

    Filename: controllers/user.php

    I've checked and checked my code, watched you previous tutorials, and can't seem to find the error.

  • @JABevan Dunno mate? You can shoot me through your code if you like and I will give it a once over... Send it to my email address or via the contact form on simplycodeigniter site

  • Hey, i'm trying to learn using Ci, but i have one problem Call to undefined function base_url() in MyHost/Ci/application/controll­ers/user.php on line 8

    ( i wrote url and form to autoload, but nothing changes ) Any ideas? :)

    And, thanks for the tutorials :)

  • @TheUfonautas Hi mate - sorry I missed your question sooner! You need to autoload the "url" helper.

    Rather than use $this->['base_url'] = base_url() in your constructor... I tend to just use base_url() when I need it now rather than sending it through to the view as a variable. Also see Gerrrrrrrry's comment below - you don't need it in anchor tags ie; echo anchor('controller/function', 'title', array('properties')) is sufficient...

Top Comments

  • Congratulations Al, this is a great set of tutorials. I have never used CodeIgniter but am considering it and you have increased my confidence!

  • great tutorials man, I am acutally learning CI now, so this is a great resource. Thanks!!

see all

All Comments (36)

Sign In or Sign Up now to post a comment!
  • @Verbloten

    I have this on line 9: $this->view_data['base_url'] = base_url();

    ...and this on line 21: $this->load->view('view_regist­er', $this->view_data);

  • Excellet demonstration/tutorial!

  • I think it'd be great if you could put the version of CodeIgniter in the description so that things are a little bit future-proofed. I know that the video tutorials on the CI website are considered deprecated, but the lessons are still valid. Same could be said for you videos once CI has progressed further, I think.

    Thanks for the videos! Really great!

  • @Verbloten Thank, thank, thank you!!

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