Blog

Some useful SSH commands

The following commands are often used by developers in Linux environment. This is very helpful for peoples who ever entering Linux world . For windows user, you can try this …

Angularjs sample application

This application combined with angular-seed & ui-router module which will help people to understand SPA (Single-page-application) navigation’s using AngularJS This project followed the following concepts > Directory structure followed from …

Encode or Decode html entity from string

Decoding the HTML entity var entityString = “&lt;strong&gt;Am Asik&lt;/strong&gt;”; var entityDecodedString = $(‘<div />’).html(entityString).text(); alert(entityDecodedString ); //<strong>Am Asik</strong>   Encoding the HTML entity var entityString = “<strong>Am Asik</strong>”; var entityEncodedString …

Create thumbnail image in codeigniter

Adding the following method as custom helper file and check the below sample. <?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’); function image_thumb($folder_name, $image_name, $width, $height) { // …

Remove index.php in codeigniter using htaccess

Add the following code in htaccess file and place this in project root directory. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,L] </IfModule>   …

Perform ajax call in codeigniter

You can simply add the following jquery code to perform ajax using codeigniter var url = ‘http://www.yourdomain.com/ajax_page/keyword/shirts’ ; $.ajax({ type: “POST”, url: url, beforeSend: function(msg){ $(‘#ajax_loading_div).html(“<center><img src=’http://www.yourdomain.com/images/ajax-big-loader.gif’ /></center>”); }, success: …