'.lang( 'info_test_hook_one') .''; } /* 通过挂载点test_diaoyong调用钩子程序下的testDiaoyong函数,如果testDiaoyong程序不存在,默认调用钩子程序下run函数 */ public function testDiaoyong( $arr=array() ){ global $_G; echo ''.lang( 'info_test_hook_two') .'
'; $data=C::t('#test#test')->fetchall();// 此处本应该是 C::C::t('test')->fetchall(); 换成 #test#test 主要还是是防止在其他应用里面调用该钩子程序时数据模型找不到的错误。 echo( var_export($data,true) ); } }