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

Allow positional parameters in custom functions #226

Closed
wants to merge 1 commit into from

Conversation

cdp1337
Copy link

@cdp1337 cdp1337 commented May 3, 2016

This patch is what we've been using for some time for functions in Core Plus such as the date function, {date $model.created}.
It adds arguments assigned onto the parameter stack in the next index based on the order that they're set in.

This would fix #164

This patch is what we've been using for some time for functions in Core Plus such as the date function, `{date $model.created}`.
It adds arguments assigned onto the parameter stack in the next index based on the order that they're set in.

This would fix smarty-php#164
@uwetews
Copy link
Contributor

uwetews commented May 5, 2016

Your modification does break Smarty's error handling and is causing the continuous integration test on Travis CI to fail.

@uwetews uwetews closed this May 5, 2016
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

Successfully merging this pull request may close these issues.

Positional parameters ?
2 participants