CodeIgniter From Scratch: Day 1
videos

CodeIgniter From Scratch: Day 1

This entry is part 1 of 17 in the CodeIgniter From Scratch Session
Next »

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


Add Comment

Discussion 523 Comments

Comment Page 8 of 8 1 ... 6 7 8
  1. candlemaker says:

    The tutorial works fine. Just use the new CI classes as noted above and double check the code. It does work.

  2. Kemal says:

    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

    • Ben says:

      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.

    • Bill says:

      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! :)

  3. Greg says:

    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?

  4. Alex says:

    Прикольные обои)

  5. jim says:

    beautiful helpfull!!!

  6. jack says:

    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.

  7. Ben says:

    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…

  8. Noirita says:

    I cant see video – just a blank page. plz help

  9. Robo says:

    Great introduction to CodeIgniter. I am looking forward to watching the rest of the series.

  10. moshmage says:

    so i had to view the tutorial twice, laad made me laught twice ^^’

  11. pallav says:

    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?

  12. andrew says:

    Isn’t it against the concept of the MVC pattern to have the model access the database?

  13. rohan s says:

    I am facing problems in running php on windows environment , can somebody help with that

    I have installed WAMP which isnt opening up.

  14. TC says:

    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;
    }
    }
    }

  15. timj says:

    You are missing a bracket to close off the if clause. Add a ) after the 0.

  16. sarmen says:

    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

  17. Derek says:

    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.

    • Derek says:

      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.

  18. John From Bangladesh says:

    Awesome…. Thank you so much. It’s really so much Helpful. God Bless….. :)

  19. Emil John Bustos says:

    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

  20. Emil John Bustos says:

    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

  21. Emil John Bustos says:

    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

  22. Ampere says:

    hey that was a nice tutorial for a newbie… thanks for the tutorial

  23. JurLan says:

    This looks like a great tutorial, but before I get started: I suppose these videos are also good when using CodeIgniter 2.10?
    Thanks.

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

Comment Page 8 of 8 1 ... 6 7 8

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.