Category Archives: CodeIgniter

Generate Facebook Product Catalog Feed (XML)

Facebook Doc:

CodeIgniter XML Helper:

Sample Code:



Old utf8 char_set could cause unexpected error like

Here is example string:

To solve this, change char set settings in config file of CodeIgniter:


Upload Error Handler

Helper functions:

Other programming issue:


base_url config (https or http)




Codeigniter Cart not working in IE

Chang session setting in config.php:




Get result of stored procedure via PHP

DB account must have “execute” permission!

Stored procedure example:

PHP example: (Codeigniter)


Prevent inline style attribute being removed

Inline style attribute will be removed by CodeIgniter by default, not tinymce’s fault!

Set this param to false in config.php:


Update Excel Content


Redirect all pages

In application/config/routes.php