1
public function getLaymanLayout($id){ $form = $this->getForm(); $form->bind(0); } 

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().

1
  • 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

1

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.