@@ -27,7 +27,6 @@ persisted to the database. Writing in flat PHP is quick and dirty:
27
27
28
28
<?php
29
29
// index.php
30
-
31
30
$link = mysql_connect('localhost', 'myuser', 'mypassword');
32
31
mysql_select_db('blog_db', $link);
33
32
@@ -85,7 +84,6 @@ the code that prepares the HTML "presentation":
85
84
86
85
<?php
87
86
// index.php
88
-
89
87
$link = mysql_connect('localhost', 'myuser', 'mypassword');
90
88
mysql_select_db('blog_db', $link);
91
89
@@ -146,7 +144,6 @@ of the application are isolated in a new file called ``model.php``:
146
144
147
145
<?php
148
146
// model.php
149
-
150
147
function open_database_connection()
151
148
{
152
149
$link = mysql_connect('localhost', 'myuser', 'mypassword');
@@ -543,7 +540,6 @@ them for you. Here's the same sample application, now built in Symfony2:
543
540
544
541
<?php
545
542
// src/Acme/BlogBundle/Controller/BlogController.php
546
-
547
543
namespace Acme\B logBundle\C ontroller;
548
544
use Symfony\B undle\F rameworkBundle\C ontroller\C ontroller;
549
545
@@ -699,7 +695,6 @@ for example, the list template written in Twig:
699
695
.. code-block :: html+jinja
700
696
701
697
{# src/Acme/BlogBundle/Resources/views/Blog/list.html.twig #}
702
-
703
698
{% extends "::layout.html.twig" %}
704
699
{% block title %}List of Posts{% endblock %}
705
700
0 commit comments