Category Archives: CodeIgniter

Generate Facebook Product Catalog Feed (XML)

Facebook Doc: https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/product-catalog#feed-format

CodeIgniter XML Helper:

Sample Code:

 

utf8mb4

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)

/index.php

/application/config/config.php

 

Codeigniter Cart not working in IE

Chang session setting in config.php:

to

Reference:

 

Get result of stored procedure via PHP

DB account must have “execute” permission!

Stored procedure example:

PHP example: (Codeigniter)

Reference:

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:

Reference:

Update Excel Content

 

Redirect all pages

In application/config/routes.php