Skip to content

Use of low level $_POST variables #6

@ktharindu

Description

@ktharindu

Recommended way is to use Magento's way instead of using ordinary ways to minimize mistakes.
For example:

$livechat_license_number = !isset($_POST['livechat_license_number']) ? $livechat_license_number= '' : $_POST['livechat_license_number'];

For the above, we can use the below magento's method:

$this->getRequest()->getPost('livechat_params', '');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions