What type of API is this?
This is a followup question regarding an API question I had.
I am using Zend Framework 2.
zf-skeleton/module/MyApplication/src/MyApplication/Controller/IndexController.php
public function submitAction() {
$myForm = new MyForm();
$myForm->get('submit')->setValue('Add');
$request = $this->getRequest();
if ($request->isPost()) {
$myModel = new MyModel();
$myForm->setInputFilter($myModel->getInputFilter());
$myForm->setData($request->getPost());
if ($myForm->isValid()) {
// Form is validated. [1]
Now the form is validated, do I send the POST
arguments to another action within this controller or create a new controller?
I am looking for best practices.