摘要:
1、启用钩子(/application/config) $config['enable_hooks'] = TRUE; 2、创建钩子函数 方法一: $hook['post_controller'] = function() { echo 'this is the first hook'; }; 方法 阅读全文
摘要:
Codeigniter 3.0+Smarty-3.1.14 1、下载Smarty类库,并放到CI/Controller/libraries; 修改Smarty.class.php文件名为Smarty.php 2、配置autoload.php,自动加载smarty类 <?php $autoload[' 阅读全文