一:空模块和空操作
在控制器方法中添加 function _empty(){}方法。
控模块: 添加控模块EmptyAction.class.php
二:前置操作和后置操作
前置操作 function _before_index(){} , 在方法名称前加_before_操作名, 例如登录页面中,用户信息会保存在session中。
后置操作 function _after_index(){}, 在方法前加_after_操作名。
一:空模块和空操作
在控制器方法中添加 function _empty(){}方法。
控模块: 添加控模块EmptyAction.class.php
二:前置操作和后置操作
前置操作 function _before_index(){} , 在方法名称前加_before_操作名, 例如登录页面中,用户信息会保存在session中。
后置操作 function _after_index(){}, 在方法前加_after_操作名。