Skip to content

Commit f0ecf02

Browse files
committed
more tweaks
1 parent a7901c1 commit f0ecf02

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

page_creation.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ random) number and prints it. To do that, create a "Controller class" and a
5252
*/
5353
public function numberAction()
5454
{
55-
$number = rand(0, 100);
55+
$number = mt_rand(0, 100);
5656

5757
return new Response(
5858
'<html><body>Lucky number: '.$number.'</body></html>'
@@ -117,7 +117,7 @@ variable so we can render that::
117117
*/
118118
public function numberAction()
119119
{
120-
$number = rand(0, 100);
120+
$number = mt_rand(0, 100);
121121

122122
return $this->render('lucky/number.html.twig', array(
123123
'number' => $number
@@ -126,7 +126,7 @@ variable so we can render that::
126126
}
127127

128128
Finally, template files should live in the ``app/Resources/view`` directory. Create
129-
a a new ``app/Resources/views/lucky`` directory with a new ``number.html.twig`` file
129+
a new ``app/Resources/views/lucky`` directory with a new ``number.html.twig`` file
130130
inside:
131131

132132
.. code-block:: twig
@@ -166,7 +166,7 @@ So what about the other directories in the project?
166166
package manager.
167167

168168
``web/``
169-
This is the document root for your project: but any publicly accessible files
169+
This is the document root for your project: put any publicly accessible files
170170
here (e.g. CSS, JS and images).
171171

172172
Bundles & Configuration
@@ -184,11 +184,11 @@ Bundles are registered in your ``app/AppKernel.php`` file (a rare PHP file in th
184184
{
185185
public function registerBundles()
186186
{
187-
$bundles = [
187+
$bundles = array(
188188
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
189189
new Symfony\Bundle\TwigBundle\TwigBundle(),
190190
// ...
191-
];
191+
);
192192
// ...
193193

194194
return $bundles;

0 commit comments

Comments
 (0)