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


Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • Naleen Yadav

    Thanks a lot for this tutorial.

  • Marvel.

    Thanks for this great tut. you are really great ;)

  • Suyog

    You are simply awesome, mysteries in the world will be solved if there are nice teachers like you.

  • SSS

    Thanks, very much appreciated!

  • andy

    nice one… really helpful ….

  • Chester

    with the latest version, you have to put CI_Model and CI_Controller to make it work.

  • Jeff

    Jeff, I love you. Thank you so much for explaining everything so well and dedicating your time to this series!

  • rajaman

    Great Tut! Thank you a lot!!!!

  • Melvin

    Hi, I followed the tutorial and when I tried to go to http://localhost:8888/ci/index.php/site/, I get a blank page. Any idea what could be missing? I’m relatively new to PHP. Thanks!

    • Melvin

      I found the answer below. Reason is I need to extends CI_Controller instead of Controller. Thanks to Ben!

  • Eric

    So MUch Win!

  • John

    Thank you for explaining MVC so well. I was not able to get it clearly when I’m still reading the concepts.

  • Anandhan

    Wonderful Tutorial.

  • Manolis

    hello people!! i am trying out the code of the video but for some reason i am not seeing any results coming from the get(‘test’)… in the getall function the if statement shows the query as empty, also i get an error message saying Message: Undefined variable: data (site_model, function getall, “return $data” line)

  • Connie Joneloro

    How to make the first echo work? I am 2.1.3. http://localhost:8080/ci/index.php/site

    <?php

    class Site extends CI_Controller {

    function index() {

    echo 'hello world';
    }

    }

  • saikanth

    WOW!! this tutorial is realy great.. so understandable!

  • Dimitar Berbatov

    This is the first video I’ve watch in your series about CI. It’s very
    usefull for me and others.I have followed your guide from the start to
    the end of your video.But I don’t know why my localhost noticed
    error ”

    Severity: Notice

    Message: Undefined property: Site_model::$db

    Filename: models/site_model.php

    Line Number: 6

    Fatal error: Call to a member function get() on a non-object in D:xampphtdocsciapplicationmodelssite_model.php on line 6

    Even if I copy your source code to htdocs folder, It noticed the same error :(

    Can any one (or the author) help me to resolved my problem? Thanks in advance