Error Handling in Codeigniter

CodeIgniter lets you build error reporting into your applications using the functions described below. In addition, it has an error logging class that permits error and debugging messages to be saved as text files. Note: By default, CodeIgniter displays all PHP errors. You might wish to change this behavior once your development is complete. You’ll […]

Read More

URI Routing in Codeigniter

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:

In some instances, however, you may want to remap this relationship so that a different class/method can be called instead of the one corresponding to the URL. For example, let’s […]

Read More

Compatibility Functions in Codeigniter

Compatibility Functions CodeIgniter provides a set of compatibility functions that enable you to use functions what are otherwise natively available in PHP, but only in higher versions or depending on a certain extension. Being custom implementations, these functions will also have some set of dependencies on their own, but are still useful if your PHP […]

Read More

Common Functions in Codeigniter

Common Functions CodeIgniter uses a few functions for its operation that are globally defined, and are available to you at any point. These do not require loading any libraries or helpers. is_php($version) Parameters: $version (string) – Version number Returns: TRUE if the running PHP version is at least the one specified or FALSE if not […]

Read More

Auto-loading Resources

CodeIgniter comes with an “Auto-load” feature that permits libraries, helpers, and models to be initialized automatically every time the system runs. If you need certain resources globally throughout your application you should consider auto-loading them for convenience. The following items can be loaded automatically: 1) Classes found in the libraries/ directory 2) Helper files found […]

Read More