Joomla 3.2.x - Loading Component Creator Form into Another Component

So I am using the component creator. I am wondering how can I load a form from one component to another component?

For example I am in a view for satscoreform where I have a form that has inputs created with

$this->form->getInput('score');

      

Now I have another component and I want to capture this whole form:

<form action blah blah blah>
  <input type="hidden" name="jform[id] value="<?php echo $this->item->id?> ?> " />
  $this->form->getLabel('score');
  $this->form->getInput('score');

  // Token, Submit btn, etc here
</form>

      

... and place it on another page.

How can I get the shape, language, etc. and upload it to another page? Thanks to friends.

+3


source to share


1 answer


Since the form is first instantiated by the model and then navigated to the view, you can try to instantiate the Model from the component that has the form and pass that to your view with something similar to this answer Dmitry Rekun



-1


source







All Articles