Blogging about the Internet, Web Design and Publishing, Business and Entrepreneurship

CodeIgniter Tutorial

From the past few weeks I’ve been going back and updating my previous tutorials namely, the html introduction, html basic tags and the html anchor tag tutorials.

However, during the html tutorials preparations, I thought of introducing a codeigniter tutorial series. Wait a minute! What exactly is CodeIgniter?

What’s CodeIgniter?

codeigniter tutorialIf you have been a PHP programmer for a while, I can be sure that you have some knowledge of the existence of PHP frameworks.
PHP Frameworks were created to give a PHP programmer a structure he can use across different applications.
PHP frameworks are designed to help PHP programmers create code with less time. I encourage you to read more about Model-View-Controller to get a better grasp of how PHP frameworks works. For the meantime, let’s get back to our CodeIgniter tutorial.

The CodeIgniter website refers to CodeIgniter as:

[CodeIgniter is] an Open Source Web Application Framework that makes writing kick-ass PHP programs simple as apple pie

From what I have been hearing, it is absolutely true :) Now let’s get on to the installation part.

CodeIgniter Installation

Installation of CodeIgniter is much simpler than apple pie.

  1. Download the latest version of CodeIgniter
  2. codeigniter tutorial

  3. Extract CodeIgniter zip folders and files into a folder on your web server.
  4. codeigniter tutorial

  5. Open up the CodeIgniter config.php file located at application/config/config.php.
  6. codeigniter tutorial

  7. Update the CodeIgniter base_url. In my case, I set my base URL to http://pinoytech.org/ci/
  8. codeigniter tutorial

    codeigniter tutorial

  9. That’s it! There no number 5!

CodeIgniter Security

Security is of course a main priority for all applications. CodeIgniter gives an option for CodeIgniter users to increase security by renaming the CodeIgniter system folder.

codeigniter tutorial

Do remember to rename the $system_folder setting in the index.php file located at your root installation.

We won’t be stopping at the CodeIgniter installation. In the next few weeks or months, I will go in-depth into this PHP framework by giving more CodeIgniter tutorials. I hope to see more CodeIgniter users next time :)


Tags:

Like the post? You may want to:


Articles other people have read:

RSS feed | Trackback URI

3 Comments »

Comment by Jairus Bondoc
2008-04-22 21:22:11

This is so like CakePHP also. I mean, what is the deal with frameworks trying to always change the URIs instead of index.php?var1=value1&var2=value2 to a more ambiguos slash separated URIs (index.php/value1/value2/value3) ? For me i would rather go for the old school and if SEO is the concern i’ll just use htaccess instead. I mean a filename followed by a slash to make it look like a directory just doesn’t feel right and did i say slashes make it ambiguos? :P

Comment by TEEJAY
2008-04-25 07:54:41

I also do htaccess when I don’t use CI :)

I have looked into CakePHP but haven’t really gotten in-depth with it yet. I hope so in the future but for now, I would stick with CodeIgniter.

 
 
Comment by Mark
2008-04-25 07:57:05

I haven’t gone coding in a while and I’m willing to learn something new. I would like to try CodeIgniter and see if it fits my coding style :D

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.