File: hooks.php

package info (click to toggle)
kalkun 0.8.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,340 kB
  • sloc: php: 30,659; javascript: 30,443; sql: 961; sh: 766; xml: 105; makefile: 41
file content (30 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

// phpcs:disable CodeIgniter.Commenting.InlineComment.WrongStyle
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files.  Please see the user guide for info:
|
|	https://codeigniter.com/userguide3/general/hooks.html
|
*/
// phpcs:enable
$hook['pre_controller'] = array(
        'class'    => 'MY_Hooks',
        'function' => 'kalkun_set_error_handler',
        'filename' => 'MY_Hooks.php',
        'filepath' => 'hooks',
        'params'   => array()
);

$hook['post_controller'] = array(
        'class'    => 'MY_Hooks',
        'function' => 'kalkun_restore_error_handler',
        'filename' => 'MY_Hooks.php',
        'filepath' => 'hooks',
        'params'   => array()
);