-
Notifications
You must be signed in to change notification settings - Fork 10
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
Rule: Curly braces should not be used in PHTML files #16
Comments
Thanks @renttek . You mention that "curly braces should not be used in PHTML templates". Could you elaborate a bit on why this is the case? I understand that this could be a best practice, but we first need to summarize why this actually needs to be a best practice. |
I also prefer curly braces in PHTML when (and only when) the start and end is in the same PHP block, for example, if statements and variable assignment at the top of the template file. |
@navarr that sounds good. What about: "opening and closing braces must be within the same |
Closed in favor of new issue #41 |
Curly braces should not be used in PHTML files.
Bad:
Better (Proposal 1):
Better (Proposal 2):
(Source: https://twitter.com/jissereitsma/status/990301162090975232)
The text was updated successfully, but these errors were encountered: