Page 1 of 1

retrivieng POST data from form

Posted: 07 Mar 2018, 17:56
by Travin
Hello!
I'm trying to modify Account page, so I want to retrieve some POST data from form in a file ext\ai-client-html\client\html\src\Client\Html\Account\History\Standard.php . How can I do it?
I've created a form at frontend, and then I've used $params = $view->param('field_name',null); at function getBody() at Standard.php, but it's empty. I've also included csrf field at the form to prevent safety problems

Re: retrivieng POST data from form

Posted: 08 Mar 2018, 17:39
by aimeos
You should do that in the process() method of the HTML client classes which you can overwrite. Can't say anything about the empty parameters as long as you don't post the code.

Re: retrivieng POST data from form

Posted: 17 Mar 2018, 12:18
by Travin
Thanks for the answer
I'm trying to create a new account page with some new data. I've create this structure http://joxi.ru/J2b431li4zEDDr
I've create templates for this also: http://joxi.ru/E2pebdgUBzeEoA
The problem is I need to retrieve my $_POST data somewhere at my class Standard extends Aimeos\Client\Html\Common\Client\Factory\Base implements \Aimeos\Client\Html\Iface to update DB with \Aimeos\MShop\Common\Manager\Iface there

Re: retrivieng POST data from form

Posted: 17 Mar 2018, 17:47
by aimeos
The structure looks OK, only the form action might be wrong depending on your Laravel routes.