Skip to content

Updated templating/* articles to Symfony 4 #8734

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 2 commits into from
Nov 27, 2017

Conversation

javiereguiluz
Copy link
Member

No description provided.

@@ -196,8 +173,8 @@ decorating the template. In the ``index.html.php`` template, define a

.. code-block:: html+php

<!-- templates/Hello/index.html.php -->
<?php $view->extend('AppBundle::layout.html.php') ?>
<!-- templates/hello/index.html.php -->
Copy link
Member

Choose a reason for hiding this comment

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

Note that templating php engine does not supports the paths provided by Twig. See related issue symfony/symfony#25019, So it should be here src/Resources/views/

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for reviewing and for reporting this error! I wasn't sure about this PHP part.

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

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

Nice! :)

Surely unrelated but could you please add some note in overriding section where we talking about the use of @! to override a template partially? Thanks! #8440

@javiereguiluz
Copy link
Member Author

@yceruto I've created #8741 to not forget about this. Thanks!

@weaverryan weaverryan merged commit 550cd58 into symfony:4.0 Nov 27, 2017
weaverryan added a commit that referenced this pull request Nov 27, 2017
This PR was squashed before being merged into the 4.0 branch (closes #8734).

Discussion
----------

Updated templating/* articles to Symfony 4

Commits
-------

550cd58 Fixed PHP templates location
d0ede99 Updated templating/* articles to Symfony 4
weaverryan added a commit that referenced this pull request Nov 27, 2017
* 4.0: (36 commits)
  Update event_listeners_subscribers.rst
  Update event_listeners_subscribers.rst
  [#8683] Tweaks based on feedback
  [#8643] Removing default values
  [#8734][#8736] Adding missing installation details
  fixes thanks to the team!
  add missing link target for Ansistrano
  Restored the Assetic tags because they are removed in another PR
  Corrected a spelling error.
  Updated Doctrine config reference about bundles
  Fixed PHP form theme resources
  Remove App\Bridge\Doctrine\ namespace
  Fixed the last references to security.yml
  Updated the main security article
  Updated security/* articles to Symfony 4
  (WIP) Updated security/* articles to Symfony 4
  Fixing build problems
  tweaks thanks to @yceruto
  updating the rest of the Doctrine docs
  Update Custom UsernamePasswordToken Authenticator
  ...
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