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

Skip to content

Commit c27e032

Browse files
committed
Fixed code examples book/from_flat_php_to_symfony2
1 parent 84c2a70 commit c27e032

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ persisted to the database. Writing in flat PHP is quick and dirty:
2727

2828
<?php
2929
// index.php
30-
3130
$link = mysql_connect('localhost', 'myuser', 'mypassword');
3231
mysql_select_db('blog_db', $link);
3332

@@ -85,7 +84,6 @@ the code that prepares the HTML "presentation":
8584

8685
<?php
8786
// index.php
88-
8987
$link = mysql_connect('localhost', 'myuser', 'mypassword');
9088
mysql_select_db('blog_db', $link);
9189

@@ -146,7 +144,6 @@ of the application are isolated in a new file called ``model.php``:
146144

147145
<?php
148146
// model.php
149-
150147
function open_database_connection()
151148
{
152149
$link = mysql_connect('localhost', 'myuser', 'mypassword');
@@ -543,7 +540,6 @@ them for you. Here's the same sample application, now built in Symfony2:
543540

544541
<?php
545542
// src/Acme/BlogBundle/Controller/BlogController.php
546-
547543
namespace Acme\BlogBundle\Controller;
548544
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
549545

@@ -699,7 +695,6 @@ for example, the list template written in Twig:
699695
.. code-block:: html+jinja
700696

701697
{# src/Acme/BlogBundle/Resources/views/Blog/list.html.twig #}
702-
703698
{% extends "::layout.html.twig" %}
704699
{% block title %}List of Posts{% endblock %}
705700

0 commit comments

Comments
 (0)