Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: Move Form Data to lot Context #20

Closed
taufik-nurrohman opened this issue Jan 10, 2021 · 0 comments
Closed

TODO: Move Form Data to lot Context #20

taufik-nurrohman opened this issue Jan 10, 2021 · 0 comments

Comments

@taufik-nurrohman
Copy link
Member

taufik-nurrohman commented Jan 10, 2021

So that I can do more with the form data such as to add validator and filter rules.

Before

$_['form'] = [ /* ... */ ]; // Dynamically generated from form submission or query string in URL

After

$_['form'] = [
    'error' => [ /* ... */ ], // Validator task(s)
    'info' => [ /* ... */ ], // Filter task(s)
    'lot' => [ /* ... */ ], // Dynamically generated from form submission or query string in URL
    'type' => 'post' // Taken from `$_SERVER['REQUEST_METHOD']`
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant