最新消息: 新版网站上线了!!!

thinkphp中A方法的使用

thinkphp代码
public function cug_details(){//对应的每个工单信息的详细信息

 

    $step=$this->_get('step');

    $id=$this->_get('id');//得到工单id

    $data['id']=$id;

    $order_list=M('order_list');

    $rs=$order_list->where($data)->select();

    if($rs){

    $this->assign("rs",$rs);

    }

    if($step){

    $this->assign("step",$step);

    }

    $laiyuan = A("Fangwen"); 

    $type = $laiyuan->order_source();

    $this->assign("$type",$type);

    $this->display();

    }

 

转载请注明:谷谷点程序 » thinkphp中A方法的使用