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

controllers/examples.cfc syntax error. #1

Open
dhgassoc opened this issue Feb 2, 2023 · 1 comment
Open

controllers/examples.cfc syntax error. #1

dhgassoc opened this issue Feb 2, 2023 · 1 comment

Comments

@dhgassoc
Copy link

dhgassoc commented Feb 2, 2023

I am using adobe2016, and got an error in /controllers/examples.cfc
line 99, function respond()

was
flashInsert("#local.flashType#" = arguments[local.flashType]);

correction to fix error:
flashInsert( local.flashType = arguments[local.flashType]);

@chapmandu
Copy link
Owner

Hi there..

Your change will silence the error, but you won't get the correct param name passed to the function.

It seems ACF doesn't support dynamically named function params. I developed this using Lucee 5 so It looks like you may need to use an argumentCollection struct.

See here.. https://trycf.com/gist/c8a393f7ca4ef2f35c704a6663c4758f/acf2016?theme=monokai

Thanks for trying out this repo.

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