Skip to content

Added a note about the side effects of enabling both PHP and Twig #4220

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

Merged
merged 3 commits into from
Sep 16, 2014
Merged

Added a note about the side effects of enabling both PHP and Twig #4220

merged 3 commits into from
Sep 16, 2014

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? yes
Applies to 2.3+
Fixed tickets #3293


Enabling the ``php`` and ``twig`` template engines simultaneously is
allowed but it will produce an important side effect in your application:
template namespaces will no longer work::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a bit more precise. They will still work in places where you talk to Twig directly (for instance all places referencing a template from another one)

.. caution::

Enabling the ``php`` and ``twig`` template engines simultaneously is
allowed but it will produce an undesirable side effect in your application.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allowed, but [...]

@weaverryan
Copy link
Member

Thanks Javier! Weird side-effect/bug - I don't really like it. But this is an edge-case for users, so I think it's ok. Cheers!

@weaverryan weaverryan merged commit fbbabb1 into symfony:2.3 Sep 16, 2014
weaverryan added a commit that referenced this pull request Sep 16, 2014
…and Twig (javiereguiluz)

This PR was merged into the 2.3 branch.

Discussion
----------

Added a note about the side effects of enabling both PHP and Twig

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | 2.3+
| Fixed tickets | #3293

Commits
-------

fbbabb1 Reworded the explanation about the limitation of enablin PHP templates
5e47417 Improved the explanation thanks to @stof comments
3828162 Added a note about the side effects of enabling both PHP and Twig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants