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