Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Last active March 27, 2016 10:03
Show Gist options
  • Save kurozumi/a0ece5b0a19b9e168f3e to your computer and use it in GitHub Desktop.
Save kurozumi/a0ece5b0a19b9e168f3e to your computer and use it in GitHub Desktop.
【CodeIgniter3】フックを使ってコントローラーを拡張するクラスを複数作成する方法
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| 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/user_guide/general/hooks.html
|
*/
$hook["pre_system"] = array(
"class" => "CI_Classes",
"function" => "register",
"filename" => "CI_Classes.php",
"filepath" => "hooks",
"params" => array(APPPATH . "classes/")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment