Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update esi.rst #7653

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

Update esi.rst #7653

wants to merge 1 commit into from

Conversation

atailouloute
Copy link
Contributor

Fixing some portions of PHP code that are not surrounded with PHP tags

// you can use a controller reference
use Symfony\Component\HttpKernel\Controller\ControllerReference;
?>
<?php echo $view['actions']->render(
Copy link
Contributor

Choose a reason for hiding this comment

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

It's useless to have end/open blocks.

Copy link
Member

Choose a reason for hiding this comment

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

It's "useless" most of the times ... but in this case this is an example of a PHP template, so you must open/close PHP tags whenever you add PHP code. However, I don't know which is the current practice in the docs regarding the use ... imports. Maybe we do an exception for those blocks? Let's ask to @wouterj and @xabbuh. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In other template code examples, each piece of PHP code is surrounded by open/close tags as @javiereguiluz said? I just did the same and I am not sure about what's the correct practice in this case

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

👍 Code seems currently broken. This change looks good to me.

@xabbuh
Copy link
Member

xabbuh commented Apr 1, 2017

Thank you for the many good catches and improvements @atailouloute! To ease the merging of all the small fixes I will combine your PRs in a single PR (see #7737) and merge that one instead.

@xabbuh xabbuh closed this Apr 1, 2017
xabbuh added a commit that referenced this pull request Apr 1, 2017
…ULOUTE)

This PR was squashed before being merged into the 2.7 branch (closes #7737).

Discussion
----------

lots of minor tweaks and fixes

This PR contains all the commits from the following pull requests:

* #7641
* #7652
* #7653
* #7666
* #7667
* #7669
* #7673
* #7674
* #7675
* #7677
* #7680
* #7681
* #7710
* #7711
* #7712
* #7713
* #7714
* #7716
* #7717
* #7718
* #7721
* #7722
* #7736

Commits
-------

3d61281 lots of minor tweaks and fixes
@atailouloute atailouloute deleted the patch-17 branch April 1, 2017 12:26
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.

7 participants