JaXnPriVate
New Pleskian
- Server operating system version
- Ubuntu
- Plesk version and microupdate number
- 18.0.49
I implemented a simple Form (Copy and Pasted it from both Documentation Pages),
but both returned an Internal Error for me.
Do I have to give my method a certain name?
![1678030045530.png 1678030045530.png](https://talk.plesk.com/data/attachments/21/21557-58e2998c2394691ee19d06d6af49c539.jpg)
but both returned an Internal Error for me.
Do I have to give my method a certain name?
![1678030045530.png 1678030045530.png](https://talk.plesk.com/data/attachments/21/21557-58e2998c2394691ee19d06d6af49c539.jpg)
PHP:
public function formAction(){
$this->registerTabs();
$formIO = DomainHandler::createAddForm();
// Assign Form to View.
$this->view->settings = $formIO;
// Check for Form Submit.
if ($this->getRequest()->isPost()) {
// Proccess/save value here
$this->_status->addInfo('Data was successfully saved.');
//$this->_helper->json(['redirect' => pm_Context::getBaseUrl()]);
}
}