CodeIgniter Framework

Removing index.php from URLs in CodeIgniter

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
Articles CodeIgniter

Codeigniter multi language support using Google translate API

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
CodeIgniter

Create thumbnail images in CodeIgniter

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
CodeIgniter

How to set the pagination in CodeIgniter?

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
CodeIgniter

How to configure the baseurl in CodeIgniter

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
CodeIgniter Database

How to create database connection using CodeIgniter?

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