CodeIgniter provides a form validation class that helps to validate form fields by writing the minimal code. Generally, we are used required rule in CodeIgniter to validate a required form field. But required rule does not work when you tried to validate a file upload field in CodeIgniter. Using our example code you can implement file or image upload functionality with file input field validation in CodeIgniter.
CodeIgniter provides some built-in helpers to make easy to implement some useful functionality in the web application. Download Helper is one of them that lets you integrate file download feature quickly in CodeIgniter. The Download Helper have a force_download() function that generates server headers which force data to be downloaded to your computer.
User Login System is the most required feature in CodeIgniter framework. CodeIgniter provides many built-in libraries and helpers for implementing user authentication system. We can easily implement the user registration and login system with the session in CodeIgniter. This tutorial will provide a step-by-step guide to building a login system in CodeIgniter with session and MySQL database.
Extend CodeIgniter Ajax pagination functionality with search and filter. Search and filtering features are commonly used in every data list. Here we'll show you how to implement live search and filter on the list with Ajax Pagination in CodeIgniter. In our example script, we will fetch the posts data from the database and display in the list. Also, Ajax pagination with search and filter functionality will be added to the post list.
A custom 404 error page lets you display a well-designed page when a page-not-found error occurs. It makes a web application user-friendly and helps the user to navigate back to your website. There are many reasons for having a 404 page in CodeIgniter. Mainly the broken links are responsible for showing a 404 error page. You can easily customize the 404 (Page-not-found) error page of CodeIgniter as per your needs.
CAPTCHA is randomly generated string incorporated in an image file which is display to the user and the random string is stored in SESSION variable. Once the user submits the captcha word by viewing captcha image, the submitted value will be compare with the session value. CodeIgniter provides a captcha helper to create CAPTCHA. CodeIgniter CAPTCHA Helper helps to generate captcha image with customization options. Here we'll provide the example code to implement captcha functionality in CodeIgniter.
CodeIgniter's File Uploading Class allows uploading files on the server. You can upload single file or image easily using Upload library. But sometimes multiple file uploading feature needs to be provided the in the web application. This article will help to upload multiple file and image at once using CodeIgniter's Upload library. Also, we'll show you how to insert the uploaded file information into the database.
Integrate Facebook login is the most used feature for today's web application. Login with Facebook feature helps users to log into the web application easily. Which means that your web application receives more users / customers. In this tutorial, we're going to explain how to integrate Facebook login in CodeIgniter using Facebook PHP SDK with Facebook Graph API.
Sending email in CodeIgniter is much easier and you can set preferences as per your needs. CodeIgniter provides an Email library to sending email in application. Using our sample code you can send a text email, HTML email, and email with an attachment. Also, you would be able to set the cc email address(s) and bcc email address(s).