How to get the user browser information in Codeigniter:: //For Ip Address:: $ip_address = $this->input->ip_address(); //For User Agent / Browser:: $this->load->library(‘user_agent’); if ($this->agent->is_browser()){ $agent = …
Read MoreSelect / Deselect all checkboxes using jQuery
Select / Deselect all checkboxes using jQuery: The HTML Structure is following type::The HTML Structure is following type:: <table> <tr> <td><input type=”checkbox” id=”checkbx_selectall” /> Select …
Read MoreOptimize Images in Google Page Speed
Optimize Images in Google Page Speed:: This rule triggers when PageSpeed Insights detects that the images on the page can be optimized to reduce their …
Read MorePhp- Remove index.php from url in Codeigniter
Php- Remove index.php from url in Codeigniter RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^/(index\.php|assets/|humans\.txt) RewriteRule ^(.*)$ index.php?/$1 [L]
Read MorePhp – Remove index.php from url and redirect to https in Codeigniter
Php – Remove index.php from url and redirect to https in Codeigniter:: RewriteEngine on Rewritebase / RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] …
Read MorePhp – Define caching in Htaccess
Define caching in Htaccess:: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access …
Read MoreHOW TO SETUP A CDN TO SPEED UP YOUR WEBSITE
HOW TO SETUP A CDN TO SPEED UP YOUR WEBSITE:: If you’re looking for ways to speed up your website, one of the …
Read MoreCodeigniter – How to Join City Country State by concatenate two fields in Sql
Codeigniter – How to Join City Country State by concatenate two fields in Sql $this->db->select(” CONCAT(c.name,’-‘,co.code) as id,CONCAT(c.name,’ ,’,s.name,’ ,’,co.name) as text”,FALSE); $this->db->from(“city c”); $this->db->join(‘state …
Read MoreHow To Remove html tags from validation_errors() in Codeigniter
How To Remove html tags from validation_errors() in Codeigniter Remove html tags from validation_errors() in Codeigniter Set the Opening tag and Closing Tags for …
Read MoreUpdate Two Column Field By Splitting The VAlue from One Column in SQL.
Update Two Column Field By Splitting The Value from One Column in SQL. Here the split will be done depending on space in name. For …
Read More