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

Documentation: Scope explanation #878

Closed
danjessen opened this issue Apr 24, 2023 · 2 comments
Closed

Documentation: Scope explanation #878

danjessen opened this issue Apr 24, 2023 · 2 comments
Milestone

Comments

@danjessen
Copy link

danjessen commented Apr 24, 2023

Hi

I think the documentation needs to be updated or have a section about the scope parameter. It's explained really loosely under the {assign} function. But havn't been able to find it else where:

You can assign a variable to root of the current root tree. The variable is seen by all templates using the same root tree.

https://smarty-php.github.io/smarty/4.x/designers/language-builtin-functions/language-function-assign/

@wisskid wisskid modified the milestones: 5.0, next Nov 27, 2023
@wisskid wisskid closed this as completed in c0306d9 Feb 2, 2024
@danjessen
Copy link
Author

@wisskid great with the explanation but the escaping seems broken
Screenshot 2024-02-07 at 11 37 22

@danjessen
Copy link
Author

It would also be nice to know what the default scope is.

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