/** * Edit form. */ protected function editForm() { list($formID) = $this->getStateParams(); E()->getRequest()->shiftPath(2); $this->form = $this->document->componentManager->createComponent('form', 'Energine\\forms\\components\\FormEditor', array('form_id' => $formID)); $this->form->run(); }