Rewrite rule in codeigniter
If we dont use mod rewrite then the URL would be like thishttp://localhost/project_folder/index.php/controllerName/functionNameSo its better to remove index.php part from the URL and make it...
View ArticleCodeigniter – Image Upload using iframe and display Image in the same page
When the image gets uploaded ,it will load in the same page.The page will not get refreshed.Before Uploading Image After Uploading Image using Iframe Folder Structure ImageUpload.php – Controller...
View ArticleCodeigniter Pagination – Apply Design
Sometimes the design apply for the codeIgniter pagination will not display in the web page. We can add the div tags in the controller to solve this problem as shown below. $config['full_tag_open'] =...
View ArticleCodeigniter Image Preview
This code can be used to preview the image when we are uploading the image. NOTE : There should be a folder called “imageUpload” in the root Before selecting image After selecting image Image Preview...
View ArticleSend email in Codeigniter using a config file
We can use a config file to store email settings. I have shown how to use a config file for sending an email in codeigniter. Steps: 1.create a config file in the config folder...
View ArticleCodeigniter several configuration for multiple upload
When multiple file uploading has to be done with different $config values. It needs to re-initialise for each and every configuration settings. html form <form class="cssform" name="property"...
View ArticleCodeigniter flv,wmv uploading gives error “Invalid file type”
It gives “The filetype you are attempting to upload is not allowed.” error when I was trying to upload flv and wmv files using codeigiter “upload” library. I was sure about $config array. But this...
View ArticleCodeigniter video upload
Requirements 1.Create folder called “video” in the root folder 2.sometimes mime types has to be added for flv and wmv.so add the following lines into config->mimes.php file 'wmv' =>...
View ArticleCodeigniter upload gives error “file type not allowed” for PNG images
I have written an image uploading code. There I have allowed jpeg,png and gif image uploading. In my controller I have mentioned it as follows. $config['allowed_types'] =...
View ArticleCodeigniter Write data into Excel (Without using plugin/library)
Earlier I used to use a plugin for writing data into excel.But I found that it was very easy with codeigniter template parser. These are the steps. - Create an excel file (Here I have created...
View ArticleConnect with Facebook using Codeigniter
This is to tell you how to code connect with facebook button using Codeigniter. I will tell the steps briefly. 1) Go to facebook developers page. 2) Register as a developer. 3) Go to Apps -> Create...
View ArticleSecure Codeigniter system files by keeping them out of public_html
It is a risk to keep all files in the webroot in any web applcation. So it is possible for Codeigniter to keep folders like application and system in a different location out of public_html folder....
View Article
More Pages to Explore .....