checkEditId() is very very useful fore security purpose as it protect our edit form from direct access. but i don't know how it is implemented i check the edit() function of JModelAdmin and also check save() but did not found how it is implemented.?


1 Answer 1


You can see it in action in the main controllers of the core components. For example ContentController of Content component.

// Check for edit form.
if ($vName == 'form' && !$this->checkEditId('com_content.edit.article', $id))
    // Somehow the person just went to the form - we don't allow that.
    return JError::raiseError(403, JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.