Generic filters
Exact matches only
  • Codeigniter first script

    19th November 2014

    Random Coding

    random coding category codehaven

    Basic usage

    Unzip Codeigniter 2.20 into a folder called ‘Codeigniter’

    1. You need a controller (application/controller/pages.php)

    2. You need a view method (application/views/pages/home.php)

    3. and maybe a header (application/views/templatesfooter.php)

    4. and footer (application/views/templates/footer.php)

    5. Run the url in your browser
    http://localhost/Codeigniter/index.php/pages/view/home
    (without a .php extension)
    You should then be able to see an output that has a title(name of page), header and content of home.php, with a footer.

    Was this code snippet helpful?