After numerous requests, today we are launching a new screencast series on Nettuts+ that will focus exclusively on the CodeIgniter PHP framework. Over the course of about 10 videos, I’ll teach you exactly how to use this framework. Ultimately, we’ll work our way up to building a custom CMS. Without further ado, here’s day one!
Day 1
- Follow us on Twitter, or subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.




The tutorial works fine. Just use the new CI classes as noted above and double check the code. It does work.
I can’t see any video .
I was having the same issue on my system, so I asked my network administrator to allow http://blip.tv website in network firewall. Now I can see all the videos on my PC.
Hi;
Your videos in this series is not working. Just a blank screen. Firefox, Chrome, Opera..
Please get this fixed. I’m paying 9 bucks a month !
Thanks !
KP
It’s working fine, if you’d read the comment just above yours it would tell you what to do to get it working, reading is a great thing.
u cant read
In codeigniter 2.0.3 you have to use something like:
class Site extends CI_Controller{
}
class Site_model extends CI_Model{
}
But still, this is a great tutorial!
When something it doesn’t work as in the tutorial, you can find out why it’s not working on codeigniter.com.
Tip for “complainers”: Google more. Comment less! :)
All of these tutorials are great, however with the ongoing change in the web development and coding world, are these videos still accurately relevant to the current state of Code Igniter?
Since CodeIgniter 2.0 Model, View and Controller is now named CI_Model, CI_View and CI_Controller. The author should add a notice in the blog post!
Прикольные обои)
beautiful helpfull!!!
Videos still don’t load, just blank screen. Tried everything, every browser, even the new CI classes didn’t work. Something wrong here. Someone posted .flv file, I’ll try that.
Thanks for this great tutorial. I’m new at CodeIgniter and though the documentation is great, I couldn’t find any decent video tutorials until this one.
However, I am having some difficulties as I am also learning POO at the same time. Primarily I am having a hard time understanding Arrays of Objects…
I cant see video – just a blank page. plz help
Its ok now. Thanks for the introductory tutorial.
Great introduction to CodeIgniter. I am looking forward to watching the rest of the series.
so i had to view the tutorial twice, laad made me laught twice ^^’
we have to use CI_Controller{} for the new codeigniter versions…
can anybody tell me if that CI is the folder name in this case, or its just new syntax?
No, it’s not name of folder. CI_ – new syntax
Isn’t it against the concept of the MVC pattern to have the model access the database?
It is only the model that should talk to the db/ data source!
I am facing problems in running php on windows environment , can somebody help with that
I have installed WAMP which isnt opening up.
I get to 21.34 in the video where we are editing routes.php changing the default_controller from welcome to site, but when I do that and refresh the browser, I get an error:
Parse error: syntax error, unexpected ‘{‘ in H:\…\htdocs\CI\application\models\site_model.php on line 5
I’ve made a bunch of errors and overcome them so far, but since I followed this to the “T” and Jeffrey’s problem was only that he had “laad” instead of “load” in his code, I do not know what to do.
I would be grateful for any suggestions
P.S. I have appended model and controller to CI_Model and CI_Controller already, so that is not the problem.
This is the code for site_model that has the error:
YOUR CODE
<?php
class site_model extends CI_Model {
function getAll() {
$q = $this->db->get(‘test’);
if($q->num->rows() > 0 {
foreach ($q->result() as $row) {
$data[] = $row;
}
return $data;
}
}
}
You are missing a bracket to close off the if clause. Add a ) after the 0.
for anyone having trouble playing the video, i noticed it only works on firefox for some reason.
here is the url outside of nettuts
http://blip.tv/play/gcMVgZGVKAI.html
I’m getting a “NetworkError: 500 Internal Server Error – http://localhost:8888/read/” error in my firebug console every time I try to load the model I made…it doesn’t make sense.
Nevermind I got it. Put CI_Model in the model I made…would be nice to know what else is changing too I keep running into little issues.
great!
Awesome…. Thank you so much. It’s really so much Helpful. God Bless….. :)
I have same problem with TC
db->get(‘test’);
if($q->num_rows() >0){
foreach($q->result() as $row){
$data[]= $row;
}
return $data;
}
}
}
?>
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\wamp\www\blog\thetest\application\models\site_model.php on line 5
This is the code
db->get(‘test’);
if($q->num_rows() >0){
foreach($q->result() as $row){
$data[]= $row;
}
return $data;
}
}
}
?>
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\wamp\www\blog\thetest\application\models\site_model.php on line 5
db->get(‘test’);
if($q->num_rows() >0){
foreach($q->result() as $row){
$data[]= $row;
}
return $data;
}
}
}
?>
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\wamp\www\blog\thetest\application\models\site_model.php on line 5
hey that was a nice tutorial for a newbie… thanks for the tutorial
This looks like a great tutorial, but before I get started: I suppose these videos are also good when using CodeIgniter 2.10?
Thanks.
I’ve been reviewing codeigniter since yesterday and I am just a newbie. Thanks for the post! It makes me have clearer view of the framework. I’m going to continue on watching this series.