Posts Selected From the Category "CodeIgniter"

Generate token key in the registration of CodeIgniter application

in CodeIgniter, Framework / 1 Comment

In this post I am going to explain generate token key in the registration of CodeIgniter application, Now in every application after registration into that application we will get confirmation mail with token key or confirmation key. In this post we are going to know about generation of key and confirmation in CodeIgniter application. Users

…continue reading the post “Generate token key in the registration of CodeIgniter application”

How to send email using HTML templates in Codeigniter

in CodeIgniter, Framework / 20 Comments

This post explains how to send email using HTML templates in Codeigniter, earlier post we learned how to send mails using HTML content and using phpmailer and gmail. Now we learn how to send mails in Codeigniter. By follow the below steps we can implement it. Step 1: Create HTML file with suits to your

…continue reading the post “How to send email using HTML templates in Codeigniter”

How to create custom library file in CodeIgniter

in CodeIgniter, Framework / 1 Comment

This posts explains about How to create custom library file in CodeIgniter, in earlier we know about how to remove index.php file from URLs. We have follow few steps to create custom library in CodeIgniter. Step 1 : Go to folder application -> libraries Step 2 : Create a PHP file with YourLibraryName_lib.php Step 3

…continue reading the post “How to create custom library file in CodeIgniter”

Removing index.php from URLs in CodeIgniter

in CodeIgniter, Framework / 2 Comments

Hi friends, in this post I am going to explain how to removing index.php from URLs in CodeIgniter framework. In earlier we have learned few topics regarding CodeIgniter i.e. Pagination, Upload images and Database connection. Now we will learn how to remove index.php from URLs. .htaccess file in root directory RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f

…continue reading the post “Removing index.php from URLs in CodeIgniter”

Codeigniter multi language support using Google translate API

in Articles, CodeIgniter / 22 Comments

Hi friends, This post explains about codeigniter plugin development for multi-language support using google translate API. This is  my own contribution in Codeigniter framework. With using google translate API it is developed. The procedure and how to implement in our application is in below github link. Readme.txt will give complete procedure to implement in the application.

…continue reading the post “Codeigniter multi language support using Google translate API”

Create thumbnail images in CodeIgniter

in CodeIgniter / 5 Comments

In this post i would like to explain about how to create thumbnail images in codeigniter framework. In the following function will give the clear understand about the code. Create Thumbnail Function function _createThumbnail($fileName) { $config[’image_library’] = ‘gd2’; $config[’source_image’] = ‘uploads/’ . $fileName; $config[’create_thumb’] = TRUE; $config[’maintain_ratio’] = TRUE; $config[’width’] = 75; $config[’height’] = 75;

…continue reading the post “Create thumbnail images in CodeIgniter”

How to set the pagination in CodeIgniter?

in CodeIgniter / 1 Comment

In this i would like to explain about how to set the pagination in codeigniter framework. See the code below: to set the pagination in CodeIgniter In the controller: add the below code  $this->load->library(’pagination’);  $config[’total_rows’] = $this->db->count_all(’code_image’);  $config[’per_page’] = ‘3’;  $config[’full_tag_open’] = ‘<p>’;  $config[’full_tag_close’] = ‘</p>’;  $config[’base_url’] = base_url().’upload/list_images/’;  $this->pagination->initialize($config);  //echo base_url();  $this->load->model(’code_image’);  $data[’images’] =

…continue reading the post “How to set the pagination in CodeIgniter?”

How to configure the baseurl in CodeIgniter

in CodeIgniter / 1 Comment

This post explains about how to configure the baseurl in CodeIgniter in your localhost. See the code: In the application\config\ in that folder we have list of files., in that we have to modify the file is config.php $config[’base_url’] = "http://localhost/CodeIgniter/"; and helpers : appication\config\autoload.php file we have to modify. $autoload[’libraries’] = array(); to $autoload[’libraries’]

…continue reading the post “How to configure the baseurl in CodeIgniter”

How to create database connection using CodeIgniter?

in CodeIgniter, Database / 2 Comments

This post explains about How to create database connection using Codegniter. Follow the below steps 1. Create new/existing user for your application 2. Create new/existing database for your application 3. Get those details and update in below file 4. Run the application in the file at : application\config\database.php. we have to configured the database connection.

…continue reading the post “How to create database connection using CodeIgniter?”

How to write SEO friendly urls in CodeIgniter

in CodeIgniter, SEO / 7 Comments

Hi, In this post i will going to explain about How to write SEO friendly urls in CodeIgniter using .htacess file. create  .htaccess file with the following contents. DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] Then url will be http://localhost/codeIgniter/[controller-name]/[method-name] /   It will be

…continue reading the post “How to write SEO friendly urls in CodeIgniter”