您无权使用该链接直接访问该页面

时间:2019-02-14 17:42:54

标签: php joomla joomla2.5

我在“操作”控制器中有此保存方法。

 $model->save($data);// i call the model operation and save data
 $lastIdOperation = $model->getLastInsertedId();
// here I create a new item in the same model  but in another table  and i get the last inserted id        $model->creeNouvelleTransactionDeboureLieeAOperation($lastIdOperation);

        $idTransaction = $model->getLastInsertedIdTransactionDeboure();

// and here is set the redirect to another controller (view)
        $app = JFactory::getApplication();
        $url = JRoute::_('index.php?option=com_tktransit&view=transaction_deboure&layout=edit&is_from_operation=1&id='.(int)$idTransaction, false);
        $app->redirect($url);
    }

在“ transaction_deboure”视图中,当我尝试编辑自己创建的新项目并单击“保存并关闭”时,出现此错误

  

不允许您使用该链接直接访问该页面{我编辑的项目的ID}

0 个答案:

没有答案