retrivieng POST data from form
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
retrivieng POST data from form
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
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
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5
Re: retrivieng POST data from form
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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: retrivieng POST data from form
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
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
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5
Re: retrivieng POST data from form
The structure looks OK, only the form action might be wrong depending on your Laravel routes.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star