Book Image

CodeIgniter 1.7

Book Image

CodeIgniter 1.7

Overview of this book

CodeIgniter (CI) is a powerful open-source PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. CodeIgniter is an MVC framework, similar in some ways to the Rails framework for Ruby, and is designed to enable, not overwhelm. This book explains how to work with CodeIgniter in a clear logical way. It is not a detailed guide to the syntax of CodeIgniter, but makes an ideal complement to the existing online CodeIgniter user guide, helping you grasp the bigger picture and bringing together many ideas to get your application development started as smoothly as possible. This book will start you from the basics, installing CodeIgniter, understanding its structure and the MVC pattern. You will also learn how to use some of the most important CodeIgniter libraries and helpers, upload it to a shared server, and take care of the most common problems. If you are new to CodeIgniter, this book will guide you from bottom to top. If you are an experienced developer or already know about CodeIgniter, here you will find ideas and code examples to compare to your own.
Table of Contents (21 chapters)
CodeIgniter 1.7
Credits
About the Authors
About the Reviewer
Preface

Installing CodeIgniter


One thing you don't need is your credit card—CI is completely free!

Once your server is set up, go to the CodeIgniter site at (http://www.codeigniter.com/) and download the latest version of the framework. Version 1.7.2, the latest, it is only 2.1 MB when zipped, so it doesn't take much time to download the framework.

Unzip the folder, and install the CodeIgniter files in your website's root folder. If you are using XAMPP Lite, this is usually the htdocs folder within the xampplite folder. For WAMP it is www inside the wamp folder.

The CodeIgniter index.php file should be in the root directory. The root folder is the folder that you would point at if you navigated to the site—in this case, by accessing http://127.0.0.1. If you put CodeIgniter in some other directory you will need to point to that directory. For example, if you create a folder called codeigniter inside your WAMP installation, you will need to put http://127.0.0.1/codeigniter, in order to access your CodeIgniter...