未找到包含“JDocumenterror”类的文件“JDocumenterror”

时间:2016-01-05 05:17:34

标签: php joomla joomla3.0

我已经集成了两个应用程序,一个使用Joomla开发,另一个使用php mvc.When在第二个应用程序中提交页面时显示

  

“文件'JDocumenterror'包含'JDocumenterror'类没有   发现“

并且不会重定向到目标网页。可以采取哪些措施来删除此错误?

型号:

    function addPolicy($post)
    {
        array_pop($post);

        //$this->printr($post);die();
        $policyBreakDown = $post['rtcPercentage']."_".$post['CecPercentage']."_".$post['partnerRTCPercentage']."_".$post['translationPercentage']."_".$post['otherRTCPercentage'];
        if($post['policy_for']<>'DL'){
            $getOtherPolicy = $this->getPolicyType($post['policy_for']);
            //print_r($getOtherPolicy);
            foreach($getOtherPolicy as $data){
                $othPolicyID[]=$data->policy_id;
            }
            if(count($othPolicyID)>0){
                //foreach($othPolicyID as $k=>$v){
                $ids = implode(",", $othPolicyID);
                $data = array("status=0");
                $this->updateSQL('tbl_policy', $data,
                    ' policy_id IN ('.$ids.')');

                //}
            }

        }


        $id = $this->insert('tbl_policy',array('title'=>$post['title'] , 'description'=>$post['description'] , 'status'=>'1','break_down'=>$policyBreakDown,'policy_for'=>$post['policy_for']));

        return $id; 
    }

控制器:

if(isset($_POST['AddPolicy']))
            {
                $id = $this->Model->addPolicy($_POST);
                $this->redirect('?policy&pg=policy_manage');
            }

0 个答案:

没有答案