-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Variables visibility between blocks depend on block order #178
Comments
it's related to #163 |
Thank you! |
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
…k order, alternative solution [Closes #178]"
@dg Hello, this template was ok till v2.9.0, but with v2.9.1 it is throwing a warning, that variable When I skip the warning, the translator is working just fine.
Also mentioned in: #163 (comment) {templateType HomepageTemplate}
{var $T = 'app.' . HomepagePresenter::class}
{block h1}
{_"$T.heading.h1"}
{/block}
{block content}
<div></div>
{/block} |
@solcik I had very similar code to yours and this stopped working in v2.9.1: Template code:
@layout.latte (template base) - simplified example:
When i changed @layout.latte html body tag content to from |
@solcik @filipmelik fixed in 2.9-dev |
Version: master (f7b0fa8)
Following code emits notice:
PHP Notice: Undefined variable: x
To make it work, I have to pass
$x
explicitly to block. Or, If I change blocks order, it works:The only difference between compiled template is in method
blockA()
:I'm not sure it is bug or by desing.
The text was updated successfully, but these errors were encountered: