Category Archives: 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

 

Facebook Graph API 用法

Graph Explorer:
https://developers.facebook.com/tools/explorer?method=GET&path=me%2F&version=v2.2

Graph API: https://developers.facebook.com/docs/graph-api/reference/v2.6/user/

Token: https://developers.facebook.com/docs/facebook-login/access-tokens

PHP SDK: https://developers.facebook.com/docs/php/gettingstarted

Reference:

Examples:

Get login URL:

Login callback:

Note:

Image 1

Reference:

  1. Extra params:
    https://developers.facebook.com/docs/graph-api/using-graph-api/