CodeIgniter Registration Form Part 1
Uploader Comments (Verbloten)
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!!
All Comments (36)
-
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!!
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 3 weeks ago
@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/upgrade_200.html to see what you need to do differently...
Verbloten 3 weeks ago
@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 2 weeks ago
@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
Verbloten 2 weeks ago
Hey, i'm trying to learn using Ci, but i have one problem Call to undefined function base_url() in MyHost/Ci/application/controllers/user.php on line 8
( i wrote url and form to autoload, but nothing changes ) Any ideas? :)
And, thanks for the tutorials :)
TheUfonautas 4 months ago
@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...
Verbloten 4 months ago