カスタムの post_controller フックを作成しています。ご存知のように、codeigniter uri 構造は次のようになります。
example.com/class/function/id/
と私のコード:
function hook_acl()
{
global $RTR;
global $CI;
$controller = $RTR->class; // the class part in uri
$method = $RTR->method; // the function part in uri
$id = ? // how to parse this?
// other codes omitted for brevity
}
私はコアの Router.php ファイルを閲覧しましたが、これにはかなり戸惑いました。
ありがとう。