摘要: 1、启用钩子(/application/config) $config['enable_hooks'] = TRUE; 2、创建钩子函数 方法一: $hook['post_controller'] = function() { echo 'this is the first hook'; }; 方法 阅读全文
posted @ 2023-12-07 21:53 哆啦阿梦 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Codeigniter 3.0+Smarty-3.1.14 1、下载Smarty类库,并放到CI/Controller/libraries; 修改Smarty.class.php文件名为Smarty.php 2、配置autoload.php,自动加载smarty类 <?php $autoload[' 阅读全文
posted @ 2023-12-07 11:45 哆啦阿梦 阅读(4) 评论(0) 推荐(0) 编辑