You are not permitted to use that link to directly access that page

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
radhoine
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Feb 21, 2019 10:10 am

You are not permitted to use that link to directly access that page

Post by radhoine » Thu Feb 21, 2019 10:12 am

I have this save method in the "operation" controller.

Code: Select all

$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);
    }
In the "transaction_deboure" View when I try to edit the new item that I create and click on SAVE and CLOSE I got this error

You are not permitted to use that link to directly access that page {the id of the item that I edit}
Last edited by toivo on Thu Feb 21, 2019 10:24 am, edited 1 time in total.
Reason: mod note: added CODE tags, moved to 2.5 Coding

Locked

Return to “Joomla! 2.5 Coding”