Skip to content

Page creation article #8394

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
Oct 13, 2017
Merged

Page creation article #8394

merged 3 commits into from
Oct 13, 2017

Conversation

tiwiex
Copy link
Contributor

@tiwiex tiwiex commented Sep 14, 2017

included some clarity on creating the controller bundle. not a syntax error. The step is hidden in the code while the instruction to extend Symfony Controller with the LuckyController.

…ler\Controller;"

before Lucky Controller extends the base controller class. This was mentioned in
the code but could easily have been missed as a step. I missed that and didn't
realize it was a new line in the code. I think the necessary Framework bundles should
all have been listed.
@xabbuh xabbuh changed the base branch from master to 2.7 September 15, 2017 06:48
@@ -48,7 +48,7 @@ random) number and prints it. To do that, create a "Controller class" and a
class LuckyController
{
/**
* @Route("/lucky/number")
@Route("/lucky/number")
Copy link
Member

Choose a reason for hiding this comment

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

this change looks wrong

@@ -94,7 +94,10 @@ If you're returning HTML from your controller, you'll probably want to render
a template. Fortunately, Symfony comes with `Twig`_: a templating language that's
easy, powerful and actually quite fun.

First, make sure that ``LuckyController`` extends Symfony's base
First, include the Symfony controller class as shown in line 5 below then,
Copy link
Member

Choose a reason for hiding this comment

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

[...] below. Then [...]

@xabbuh xabbuh added this to the 2.7 milestone Sep 15, 2017
@tiwiex
Copy link
Contributor Author

tiwiex commented Sep 15, 2017 via email

@xabbuh
Copy link
Member

xabbuh commented Oct 13, 2017

Thank you @tiwiex.

@xabbuh xabbuh merged commit d2ff7d6 into symfony:2.7 Oct 13, 2017
xabbuh added a commit that referenced this pull request Oct 13, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

Page creation article

included some clarity on creating the controller bundle. not a syntax error. The step is hidden in the code while the instruction to extend Symfony Controller with the LuckyController.

Commits
-------

d2ff7d6 Rewords
d89d2b2 added the step to include  "use Symfony\Bundle\FrameworkBundle\Controller\Controller;" before Lucky Controller extends the base controller class. This was mentioned in the code but could easily have been missed as a step. I missed that and didn't realize it was a new line in the code. I think the necessary Framework bundles should all have been listed.
9e9f28e Uncommemted line 10: ** @route("/lucky/number"). I was getting a routing error.
xabbuh added a commit that referenced this pull request Oct 13, 2017
weaverryan added a commit that referenced this pull request Oct 29, 2017
* 2.7: (34 commits)
  Update questionhelper.rst
  Docs re-org and removal of small sections
  Fix a small typo error (number.rst)
  Remove deprecated proxy argument
  Fix instance of class in express language in DI
  Missing use reference
  Unused Private param in documentation
  Doctrine event listener could persist a null value
  Minor syntax issue
  Changing type definition Closure by callable
  Minor syntax issues
  Fix code-block
  Add GroupSequence validation_groups capability doc
  Assume php7
  Form - fix wrong submit button label
  added link to subscribe to a paid plan on platform.sh
  Use OpenSSL instead of Mcrypt in the examples
  [#8394] minor reword
  Minor reword
  Referencing custom encoders as named encoders
  ...
weaverryan added a commit that referenced this pull request Oct 29, 2017
* 2.8: (34 commits)
  Update questionhelper.rst
  Docs re-org and removal of small sections
  Fix a small typo error (number.rst)
  Remove deprecated proxy argument
  Fix instance of class in express language in DI
  Missing use reference
  Unused Private param in documentation
  Doctrine event listener could persist a null value
  Minor syntax issue
  Changing type definition Closure by callable
  Minor syntax issues
  Fix code-block
  Add GroupSequence validation_groups capability doc
  Assume php7
  Form - fix wrong submit button label
  added link to subscribe to a paid plan on platform.sh
  Use OpenSSL instead of Mcrypt in the examples
  [#8394] minor reword
  Minor reword
  Referencing custom encoders as named encoders
  ...
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