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

wrong example code #3

Closed
ManuDoni opened this issue Oct 21, 2015 · 1 comment
Closed

wrong example code #3

ManuDoni opened this issue Oct 21, 2015 · 1 comment

Comments

@ManuDoni
Copy link

Hi,
I just want to advice that this code (README.md):

<form action="index.php" method="post">
    <?= \Volnix\CSRF\CSRF::getAsHiddenInput('custom_token_name') ?>
    <input type="text" name="action" placeholder="Enter an action."/>
    <input type="submit" value="Submit" name="sub"/>
</form>

is invalid because the method getAsHiddenInput() doesn't exist.
The real name of the method is getHiddenInputString()

@volnix
Copy link
Owner

volnix commented Oct 21, 2015

Good catch! Fixed in 3387e49

@volnix volnix closed this as completed Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants