Web Develop Forum: Code Igniter Guide/ Thoughts - Web Develop Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Code Igniter Guide/ Thoughts Rate Topic: -----

#1 User is offline   Gaz Icon

  • Advanced Member
  • Icon
  • Group: Administrators
  • Posts: 178
  • Joined: 15-January 09
  • Gender:Male
  • Location:UK

Posted 28 January 2009 - 03:44 PM

Introduction

I have recently started using CodeIgniter, an MVC framework for PHP. I am no expert at the framework, but, I think it would be useful for me to explain useful bits of the framework as I find them: thus they will be from a beginner's perspective and someone who is new to the framework will be able to relate more with what I am saying.

Installation

Installation of CI is incredibly easy. The download link is on the front page of their website, www.codeigniter.com. The download comes in a standard zip file, and is less than a megabyte large!

Upon extraction you are presented with two folders and a few files.

The folder which we will be using the most is system. Index.php holds a few configuration settings that generally won't need changing, such as the name of the system folder. I will look into the user guide folder at a later stage.
The folder we need to open now is system, application, then config, and finally config.php.

We need to change the base_url string:

CODE
$config['base_url']    = "http://your-site.com/";




Make sure to remember the trailing slash.

Navigate to the url you entered and if you have entered the url correctly you should have the following in your browser!



Database Config

While we are in the config folder, let's set up the database config. Open up database.php in the config folder and change the following to your settings:



You are done! I will continue from this stage in a later post.
0

#2 User is offline   Diffraction Icon

  • Advanced Member
  • Icon
  • Group: Moderator
  • Posts: 279
  • Joined: 26-January 09
  • Gender:Male
  • Location:USA
  • Interests:Web Development, Reading, Writing, Computers in general...
  • Your specialities (detailed)::HTML 5
    CSS 3
    jQuery

Posted 28 January 2009 - 04:05 PM

Great post, Gareth.
Want to report something to a moderator? Use the 'report' button located on every post.
0

#3 User is offline   Blambu Icon

  • Advanced Member
  • Icon
  • Group: Administrators
  • Posts: 126
  • Joined: 22-October 08
  • Gender:Male

Posted 30 June 2009 - 11:36 AM

Thanks for the post Gareth, can you fix the images please?
[twitter]escensi[/twitter]
http://escensi.com
0

#4 User is offline   Blambu Icon

  • Advanced Member
  • Icon
  • Group: Administrators
  • Posts: 126
  • Joined: 22-October 08
  • Gender:Male

Posted 13 December 2009 - 12:05 PM

I have got to know Code Igniter very well over the past few months and have to say it is really good and easy to get started with. Very happy user.
[twitter]escensi[/twitter]
http://escensi.com
0

#5 User is offline   Sam Granger Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 431
  • Joined: 22-October 08
  • Gender:Male

Posted 13 December 2009 - 12:44 PM

I'm starting to love it more day by day too. Might look into Kohana though, which is based off CI.
0

#6 User is offline   Salathe Icon

  • Advanced Member
  • Icon
  • Group: Moderator
  • Posts: 138
  • Joined: 15-January 09
  • Gender:Male
  • Location:Scotland

Posted 13 December 2009 - 09:14 PM

View PostSam Granger, on 13 December 2009 - 12:44 PM, said:

I'm starting to love it more day by day too. Might look into Kohana though, which is based off CI.

Only, nowadays, in a historical sense. The entire codebase has been rewritten from scratch twice (K2 and K3 respectively) and while they (CI and Kohana) might share some similarities (they're both "lightweight" in the PHP framework world) there's a world of difference. Both a very good at what they do. :)
salathe@php.net
0

#7 User is offline   Gaz Icon

  • Advanced Member
  • Icon
  • Group: Administrators
  • Posts: 178
  • Joined: 15-January 09
  • Gender:Male
  • Location:UK

Posted 14 December 2009 - 01:09 AM

Would people be interested in me a) fixing this guide and b) continuing?

Kohana was a fork, but has been completely rewritten as Peter has said.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users