Skip to content
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

Fixed few typos at quick_tour #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ URL to be greeted by Symfony (replace Fabien with your first name):

What's going on here? Let's dissect the URL:

.. index:: Font Controller
.. index:: Front Controller

* ``index_dev.php``: This is a "front controller". It is the unique entry
point of the hello application and it responds to all user requests;
Expand Down
10 changes: 5 additions & 5 deletions quick_tour/the_controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ the ``router`` helper before. It takes the route name and an array of parameters
as arguments and returns the associated friendly URL.

You can also easily forward the action to another one with the ``forward()``
method. As for the ``$view->actions`` helper, it makes an internal sub-request,
method. As for the ``$view['actions']`` helper, it makes an internal sub-request,
but it returns the ``Response`` object to allow for further modification if the
need arises::

Expand Down Expand Up @@ -215,7 +215,7 @@ helper:

.. code-block:: html+php

<?php echo $view->request->getParameter('page') ?>
<?php echo $view['request']->getParameter('page') ?>

The Session
-----------
Expand All @@ -229,13 +229,13 @@ Storing and retrieving information from the session can be easily achieved
from any controller::

// store an attribute for reuse during a later user request
$this['request']->getSession()->setAttribute('foo', 'bar');
$this['request']->getSession()->set('foo', 'bar');

// in another controller for another request
$foo = $this['request']->getSession()->getAttribute('foo');
$foo = $this['request']->getSession()->get('foo');

// get/set the user culture
$this['request']->getSession()->setCulture('fr');
$this['request']->getSession()->setLocale('fr');

You can also store small messages that will only be available for the very
next request::
Expand Down
2 changes: 1 addition & 1 deletion quick_tour/the_view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Similarly, you can manage your stylesheets and JavaScripts with the

.. code-block:: html+php

<?php $view['javascripts->add('js/product.js') ?>
<?php $view['javascripts']->add('js/product.js') ?>
<?php $view['stylesheets']->add('css/product.css') ?>

The ``add()`` method defines dependencies. To actually output these assets, you
Expand Down