public function doedit_set(){ $info=$this->_post("info"); $id=$this->_post("id");//dump($info);exit(); $user=DD("Order.OrderPackage")->deal_account($info['accounts']); try{ $result=DD('Set.UserSet')->doedit_setinf
ThinkPHP 跨模块调用操作方法(A方法与R方法) 跨模块调用操作方法 前面说了可以使用 $this 来调用当前模块内的方法,但实际情况中还经常会在当前模块调用其他模块的方法.ThinkPHP 内置了 A 方法与 R 方法这两个特殊的大写字母方法来处理跨模块调用的问题. 目前 Index 模块内有 index 操作,User 模块有 showName 操作,User 模块及 showName 操作具体代码如下: <?php class UserAction extends Action{ p
一.安装xhprof wget http://pecl.php.net/get/xhprof-0.9.4.tgz tar -zxvf xhprof-0.9.4.tgz cd xhprof-0.9.4/extension/ phpize ./configure && make && make install or pecl install xhprof-beta 二.配置PHP.ini [xhprof] extension=xhprof.so; ; directory use