CodeIgniter

CodeIgniter : Sending Email via Gmail Using SMTP Protocol

Email is nothing but an Electronic mail. It is a method in which an author can exchange digital messages from one or more recipients. Here in this post by the use of CodeIgniter's inbuilt email class you will learn how one can use this CI email library to send emails via multiple protocols (mail, Sendmail, and SMTP). CodeIgniter email library supports multiple features like CC and BCCs, HTML or plain text email Multiple recipients etc. In this tutorial we are going to explain it with an example which will demonstrate you “How to use Email class library in CodeIgniter”. For...
Keep Reading

CodeIgniter JavaScript Class Example

JavaScript is a dynamic language. It is mainly used for client-side scripting i.e.  user requests an HTML page with JavaScript in it, the script is sent to the browser and then browser perform some task like effects, events etc. Here you will learn how one can use CodeIgniter's JavaScript class after loading the provided JavaScript library. Before moving further, first we need to set and configure the path as shown below: Syntax Set this line in "application/config/config.php". [php]// Here is the location, where "jquery.min.js" stored. $config['javascript_location'] = 'http://localhost/codeigniter_javascript/js/jquery.min.js';[/php] To initialize the Javascript class manually in your controller constructor. [php]$this->load->library('javascript'); // to...
Keep Reading

CodeIgniter – Getting Started With MVC

CodeIgniter is a simple web application development framework for PHP . By its modular approach we can use its inbuilt libraries and helpers. It has a three-tier architecture i.e. Model-View-Controller (MVC) which is easy to use by which the functional process logic, data access, data storage and user interface can be developed. You can also refer our previous tutorial For CodeIgniter installation and configuration. What is MVC..? MVC stands for Model, View, Controller. It is a programing pattern used in developing Web applications. This pattern separates the user interface and backend. Using  MVC, developers can implement or modify their interface or back-end without affecting the other files. MVC also increases...
Keep Reading

CodeIgniter Installation and Configuration

CodeIgniter is a simple web application development framework for PHP. By its modular approach we can use its inbuilt libraries and helpers in our application. We can separate logic from presentation by using a Model-View-Controller (MVC) pattern. In this tutorial we are going to explain you, how to install and configure the CodeIgniter framework. Below mentioned are the step by step process and installation instructions that you can follow to get CodeIgniter installed on your local computer. Step 1 : Downloading CodeIgniter Framework   Go to  http://www.codeigniter.com  and download current version of CodeIgniter framework. In this tutorial we are using CodeIgniter 2.2. Step 2 :  Installing and...
Keep Reading

CodeIgniter Image Library For Image Manipulation

While developing any web application there is a need to manipulate image dynamically such as while uploading an image. In this tutorial we are going to explain an example, which shows how to use CodeIgniter's image library for Image Manipulation. You can find Image_Lib.php class inside your CodeIgniter project’s system/libraries folder. First load image_lib library in your Controller. Syntax: [php]$this->load->library('image_lib'); //Once library is loaded, the image library object will be available using: $this->image_lib[/php] Using CodeIgniter Image Manipulation class we can perform following Functionality:- Image Resizing With the help of the resize function, one can easily able to resize the original image. To all the...
Keep Reading

CodeIgniter Calendar Class For Creating Dynamic Calendar

In this tutorial we are going to explain an example, which shows how to use CodeIgniter's Calendar class which enables you to create dynamic calendars. By using calendar template you can format the calendars in your own way as it gives 100% control over every aspect of its design. To load calendar library use: Syntax: [php]$this->load->library('calendar');[/php] You can find Calendar.php class inside your CodeIgniter project’s system/libraries folder Once loaded, the Calendar object will be available using: $this->calendar To display a calendar use the below mentioned code in your controller file. [php]//Like most other library in CodeIgniter, the calendar library is loaded in your...
Keep Reading

Encryption and Decryption In CodeIgniter

Data encryption and decryption is nothing but just converting a plain text into something that appears to be random and meaningless and vice verse. Generally this encryption is opted by the developers to make the data secured like for password, URL, credit card numbers and so on. If you are using CodeIgniter than to encrypt the data becomes much more easier as compared to native PHP code. As C.I. provides its own encryption class which you can use to encrypt or decrypt the data. To initialize the encryption class one must have to load the library as shown below: [php]$this->load->library('encrypt');[/php]...
Keep Reading

CodeIgniter Captcha Helper Example

Mostly in web applications there is a need to protect your website from getting spammed. So we need to create a Captcha spam protection to stop the spamming activities. This blog post demonstrate you, how to implement  simple captcha using CodeIgniter captcha helper file. Captcha is basically a random generated captcha string and which can be stored in session variable for further use. After that, the generated string is bunched with an image to pretend as a single image in such a way that only human being is able to read it. If a "word" is not supplied, the function will...
Keep Reading

CodeIgniter HTML Table Library

We are going to explain you how we can use CodeIgniter Table Library efficiently to create HTML table. The functions in Table Class enable you to auto-generate HTML tables from arrays or database result sets. The Table class also allow you to set a table template that helps to specify the design of your layout. Here is the template prototype: [php]$tmpl = array ( 'table_open'          => '<table border="0" cellpadding="4" cellspacing="0">', 'heading_row_start'   => '<tr>', 'heading_row_end'     => '</tr>', 'heading_cell_start'  => '<th>', 'heading_cell_end'    => '</th>', 'row_start'           => '<tr>', 'row_end'             => '</tr>', 'cell_start'          => '<td>', 'cell_end'            => '</td>', 'row_alt_start'       => '<tr>', 'row_alt_end'         => '</tr>', 'cell_alt_start'      => '<td>', 'cell_alt_end'        => '</td>', 'table_close'         => '</table>' ); $this->table->set_template($tmpl); [/php] In this demo we will show...
Keep Reading

CodeIgniter Select By ID and Date Range

In this  tutorial we are going to explain you  how to perform CodeIgniter select query to fetch data from database using date range and ID. In this demo we are  using input box and date selector. In input box you can enter an ID which you want to search and  using date selector you can search data for a particular date or for a date range. Now one can easy find a records between the two given date ranges. Watch our live demo or download the Script file from below link, extract files and run on your Local server. -: See Also...
Keep Reading

Pagination In CodeIgniter With Example

This tutorial will demonstrate how to make “Pagination in CodeIgniter”. In this post we used CodeIgniter pagination class by initializing pagination library. Pagination is one concept used for web applications. Wherever we have a bulk of data and need to show them, then it allows you to navigate from page to page, at that time we require pagination. It looks like: [php]« First  < 1 2 3 4 5 >  Last »[/php] As a robust framework, CodeIgniter provides very efficient way to handle it with its integrated support. In this tutorial, we will see through an example, how we can implement CodeIgniter pagination and enhance it further as per...
Keep Reading

CodeIgniter Remove index.php By .htaccess

In this tutorial I am going to show how to remove index.php from URL using .htaccess file in CodeIgniter. htaccess is the shortened used for Hypertext Access, which is a powerful configuration file that controls the directory ".htaccess". It is used by Apache based web servers to control various server features. Now The Question Arises Why Exactly do we want to remove index.php..?? As CodeIgniter's URLs are designed to be search engine friendly and to human too. And so to maintain the standards we need to remove the default index.php which appears in the url of codeigniter applications, so that...
Keep Reading

Session In CodeIgniter

Sessions are one of the most important part for any web applications, as it helps to maintain user's "state" and to track their activity when they visit your website. Here we have use CodeIgniter's session class that will maintain and help to store session information for each user. To use this class you need to first initialize or load the session library of CodeIgniter in your controller constructors or you can also go for $autoload in config file, so that it can be auto-loaded by the system. To load session library manually use below code - Syntax: [php]$this->load->library('session');[/php] Note: The...
Keep Reading

CodeIgniter jQuery Ajax Post Data

jQuery’s Ajax methods really made easy to post a data and return that data without refreshing the page. We can apply this jQuery Ajax post in CodeIgniter as well. Syntax for Ajax: [php]$.ajax({name:value, name:value, ... })[/php] Before proceeding further we consider that you are a bit familiar with CodeIgniter PHP framework. With the help of an example you will learn how to post data to a controller using the CodeIgniter jQuery Ajax method. In this post we have created two files  ajax_post_view.php in view folder and ajax_post_controller.php in controller folder. The Ajax code in a view page will look like as...
Keep Reading

CodeIgniter Simple Login Form With Sessions

In this tutorial, we are going to learn about creating a simple login form in CodeIgniter. In login form, we made registration module, login module and admin panel using sessions. We also have a paid ready-to-use advance login & registration module built on CodeIgniter that you can check out at CodeIgniter Login Registration Form. Creating sessions in CodeIgniter is different from simple PHP. I will give you detailed information about all the method as we move further in this tutorial.    Watch the live demo or download code from the link given below   Note : You can also refer the  PHPProjectInstall.pdf...
Keep Reading

CodeIgniter Form Helper

In this tutorial we will give you brief description about how to use "Form Helper" in CodeIgniter which will help you in making a form input tags. The process of making a form in CodeIgniter is quite different as we used in HTML. So, a user must have proper knowledge about it in order to use it properly. Form Helper files basically contains functions which are needed to create different segments of  a form (e.g inputbox , submitbutton , dropdown boxes etc.) in CodeIgniter. To use these functions it is needed to load a form helper library. So, let's begin...
Keep Reading

CodeIgniter Date Format Form Validation

This tutorial is very useful if you are looking to validate date format through CodeIgniter form validation library. Using this CodeIgniter validation library you can set as many rules as you want for a given field. To set rules for validation use : Syntax: - [php]$this->form_validation->set_rules(); [/php] With the help of an example we will let you know how it works. In this example we have created a form containing name and date field. We have used here a text box for date input as some times users also demand for it. We have used dd/mm/yy date format and set...
Keep Reading

CodeIgniter GET And POST Form Input Method

In this tutorial we will give you brief description about form submission in CodeIgniter using get and post method with database connectivity.
Keep Reading
‹ 1 2 3 ›
Our Solution
  • Subscription Billing
  • Form Builder
  • Email Marketing
  • Email List Cleaning
Connect With Us
  • Contact Us
  • Careers
Company
  • About Us
  • Privacy Policy
  • Terms and Conditions
  • Affiliate
  • Branding
Resources
  • Blog
  • Blog Categories
  • FormGet Features
  • Email Templates
  • Form Templates
CodeIgniter
Analytics
CodeIgniter

FormGet © 2021. All rights reserved.

Made with love for you