Browsing All Posts filed under »CodeIgniter(CI)«

Session Class(CodeIgniter User Guide Version 2.0.3)

October 4, 2011

0

Session Class The Session class permits you maintain a user’s “state” and track their activity while they browse your site. The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie. It can also store the session data in a database table for added security, as this permits […]

Models(CodeIgniter User Guide Version 2.0.3)

October 4, 2011

0

Models Models are optionally available for those who want to use a more traditional MVC approach. What is a Model? Anatomy of a Model Loading a Model Auto-Loading a Model Connecting to your Database What is a Model? Models are PHP classes that are designed to work with information in your database. For example, let’s say you […]

Controllers(CodeIgniter)

October 4, 2011

0

Controllers are the heart of your application, as they determine how HTTP requests should be handled. What is a Controller? Hello World Functions Passing URI Segments to Your Functions Defining a Default Controller Remapping Function Calls Controlling Output Data Private Functions Organizing Controllers into Sub-folders Class Constructors Reserved Function Names What is a Controller? A […]

File Uploading Class

October 3, 2011

0

CodeIgniter’s File Uploading Class permits files to be uploaded. You can set various preferences, restricting the type and size of the files. The Process Uploading a file involves the following general process: An upload form is displayed, allowing a user to select a file and upload it. When the form is submitted, the file is […]

General Style and Syntax

October 3, 2011

0

The following page describes the use of coding rules adhered to when developing CodeIgniter. Table of Contents File Format PHP Closing Tag Class and Method Naming Variable Names Commenting Constants TRUE, FALSE, and NULL Logical Operators Comparing Return Values and Typecasting Debugging Code Whitespace in Files Compatibility Class and File Names using Common Words Database […]

URI Routing

October 3, 2011

0

Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method. The segments in a URI normally follow this pattern: example.com/class/function/id/ In some instances, however, you may want to remap this relationship so that a different class/function can be called instead of the one corresponding to the URL. For example, lets […]

Config Class

October 3, 2011

0

The Config class provides a means to retrieve configuration preferences. These preferences can come from the default config file (application/config/config.php) or from your own custom config files. Note: This class is initialized automatically by the system so there is no need to do it manually. Anatomy of a Config File By default, CodeIgniter has one primary […]