How to direct call to the function from the view without using controller in CodeIgniter.Here is a example to it.Simply call to helper function and it get data from model. First you load helper file from your controller.
How to send SMS via SMS Gateway in PHP.I found the sms gateway to do this.But it is gives only 25 free sms per account.But you can create email account and register the following web site and send sms.Only you…
I’ll use CodeIgniter’s pagination library to show you how you can create a paginated list of results from a MySQL database. Along the way, you’ll also see how to fix a problem with the pagination links that the library might…
How to send and get data by using flash messages in the codeigniter.This is simple and passing data using array.But if you reload/refresh the page, your data may not be displayed.Because data passing using flash message.However you can pass huge…
How to get site url of the codeigniter.You can use this method in the controller,model and view files. First, you have to call this URL Helper file.
How to fetch url parameters in the codeigniter.This is very simple.All data get as an array. Example http://www.mysite.com/index.php/deposit/11/3 index.php => 0 deposit => 1 11 => 2 3 => 3 Here is a method to get parameters.
How to dynamically image re-size after loaded images, by using JQuery.This script resizing images without distorting the proportions.jQuery match all img elements and using the each function, we go through each one of them resizing them as necessary.
How to create random string and check if it exists form database , if it does create a new one using php.You can use php time() function to create random string and convert it using md5() function.
$string = substr(md5(time()), 0, 5);
// check in the db if exist, call again to this function
$string = rand_string();
return $string ;