8000 Example to include templates doesn't work by jxmallett · Pull Request #5318 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Example to include templates doesn't work #5318

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Example to include templates doesn't work
The PHP example for including templates within templates doesn't work.

Without the colons, the engine looks for `article_details.html.php` in `app\Resources\` instead of `app\Resources\views\article`
  • Loading branch information
jxmallett committed May 26, 2015
commit 71664b541902ab49be44300fbb71db3e7aebf796
2 changes: 1 addition & 1 deletion book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ Including this template from any other template is simple:

<?php foreach ($articles as $article): ?>
<?php echo $view->render(
'Article/article_details.html.php',
'::article/article_details.html.php',
array('article' => $article)
) ?>
<?php endforeach ?>
Expand Down
0