空模板与空模块在thinkphp中的使用
一、空模块和空操作
1、空操作
function _empty( $name ){ $this -]show( "$name 不存在 [a href='__APP__/Index/index']返回首页[/a]" ); }2.空模块
class EmptyAction extends Action{ function index(){ $city =M( 'City' ); $arr = $city -]select(); $this -]assign( 'list' , $arr ); $name =MODULE_NAME; //获得当前地址栏的模块名 $this -]display( "City:$name" ); //引用对应的模块 } }查看更多关于空模板与空模块在thinkphp中的使用 - Thinkphp的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did6277