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

Passing array as argument in Parser Plugin not working #724

Closed
jaynarayan89 opened this issue Sep 16, 2017 · 1 comment
Closed

Passing array as argument in Parser Plugin not working #724

jaynarayan89 opened this issue Sep 16, 2017 · 1 comment

Comments

@jaynarayan89
Copy link
Contributor

jaynarayan89 commented Sep 16, 2017

I am trying to create plugin for form_open method and want to pass array as argument. But it is not working.

{+ form_open action="jj" attributes="['id'=>'myform']" +}

@lonnieezell
Copy link
Member

That's not supported by the parser. Instead, you should accept things as key pair values, like:

{+ form_open action="jj" id="myform" +}

etc. Inside the plugin you'd need to determine what special bits wouldn't be part of the attributes array and pull those out separately. On this plus side, this is easier to read.

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