retrivieng POST data from form

Help for integrating the Laravel package
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!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

retrivieng POST data from form

Post by Travin » 07 Mar 2018, 17:56

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
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: retrivieng POST data from form

Post by aimeos » 08 Mar 2018, 17:39

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, Image give us a star

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: retrivieng POST data from form

Post by Travin » 17 Mar 2018, 12:18

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
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: retrivieng POST data from form

Post by aimeos » 17 Mar 2018, 17:47

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, Image give us a star

Post Reply