ahsankhatri / CodeIgniter-Output-Handler

Simple hook oriented class to handle/modify output. Specially made for services in JSON to handle null values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodeIgniter-Output-Handler

Simple hook oriented class to handle/modify output. Specially made for services in JSON to handle null values

Usage:

  1. Enable $config['enable_hooks'] in config/config.php, set this to TRUE
$config['enable_hooks'] = TRUE;
  1. Add this code in config/hooks.php
$hook['display_override'] = array(
    'class'    => 'OutputHandler',
    'function' => '__construct',
    'filename' => 'null_handler.php',
    'filepath' => 'hooks'
);
  1. place null_handler.php in hooks folder.

And configure or add your custom function to work with it.

About

Simple hook oriented class to handle/modify output. Specially made for services in JSON to handle null values


Languages

Language:PHP 100.0%