public function getLaymanLayout($id){
    $form = $this->getForm();

I still have a lot to implement and make it correct to the MVC rules.

I want to call a table from the db (Table class from Joomla) and then bind the data from that to the form when you press edit.

I'm struggling to get the values of the Database table placed inside of a form when I edit it on the backend of Joomla4. If I understand I have to use the JTable->bind() or JForm->bind().

  • I don't quite see a question. Are you stuck? It looks like you have a plan and have simply told us your plan. Commented Aug 2, 2022 at 11:57

1 Answer 1


There is a method $form->setProperty() which does this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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