Custom Validation Example In Codeigniter 3

Table of Contents Introduction Prerequisites Project Directory Auto-load Configuration REST Controller Route Configuration Testing Custom Validation Home Page Validation Error Validation Success Source Code Introduction This tutorial shows how to work with custom validation in Codeigniter. You need many times that a field has to be validated against some type of values but built-in features do not provide all kind…

How to disable Browser Cache easily in CodeIgniter 3

Introduction In this tutorial I am going to show you how to disable browser cache easily in PHP based web framework Codeigniter. It is a good idea to cache static data on browser but it may be a problem when browsers cache dynamic data. For example, when browsers cache session data. Though generally you destroy session but still using browser’s…

How to remove index.php from URL in Codeigniter

This tutorial shows how to remove index.php from URL in Codeigniter. You may want to remove the index.php file so that clean URL looks good and it makes better readability. Also the clean URL is easy to remember. For removing index.php from the URL you need to have .htaccess file under the project’s root directory and mod_rewrite enabled for your…