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
CakePHP Framework OS Ubuntu

Install PHPUnit in Ubuntu

Hi friends, In this post I am going to explain how install PHPUnit in Ubuntu 12.04 , by following commands we can install it. First of we have to that what is PHPUnit and why we need to use it in PHP language? PHPUnit is a unit testing software framework for the PHP programming language. …

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
Smarty

How to implement google map in smarty?

Hi friends , the following script will discuss for how to implement google map in smarty application. 1) Sign up for API key of googlemap http://code.google.com/apis/maps/signup.html 2) Create a google map class.   3) Create a tpl file, and add below code : {php} $key="Your API Key"; $gm = & new EasyGoogleMap($key); $gm->SetMarkerIconStyle(’STAR’); $gm->SetMapZoom(10); $city …

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
Smarty

How to integrate fckeditor in smarty application?

This post explains how to integrate fckeditor in smarty application. Integration of fckeditor in smarty application   1 . in libs\plugins write the foolowing file called function.fckeditor.php <?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty function plugin * Requires PHP >= 4.3.0 * ————————————————————- * Type: function * …

Continue Reading
Smarty

How to add stylesheets and javascript in smarty

how to add styles and javascript, to smarty application, in the head section  written the styles code but when we are applying that code to the tpl file is not applied is there any separate code to written in the smarty. for that reason go to below code we can the simple code in the …

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