Skip to content

Commit

Permalink
minor #5961 update from_flat_php_to_symfony2.rst (thao-witkam)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #5961).

Discussion
----------

update from_flat_php_to_symfony2.rst

remove  Php header in example code

Commits
-------

aed2638 update from_flat_php_to_symfony2.rst
  • Loading branch information
wouterj committed Dec 5, 2015
2 parents 523d08c + aed2638 commit e119979
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ the code that prepares the HTML "presentation":

.. code-block:: html+php

<?php
// index.php
$link = mysql_connect('localhost', 'myuser', 'mypassword');
mysql_select_db('blog_db', $link);
Expand Down Expand Up @@ -146,7 +145,6 @@ of the application are isolated in a new file called ``model.php``:

.. code-block:: html+php

<?php
// model.php
function open_database_connection()
{
Expand Down Expand Up @@ -188,7 +186,6 @@ The controller (``index.php``) is now very simple:

.. code-block:: html+php

<?php
require_once 'model.php';

$posts = get_all_posts();
Expand Down Expand Up @@ -280,7 +277,6 @@ page:

.. code-block:: html+php

<?php
require_once 'model.php';

$post = get_post_by_id($_GET['id']);
Expand Down Expand Up @@ -361,7 +357,6 @@ on the requested URI:

.. code-block:: html+php

<?php
// index.php

// load and initialize any global libraries
Expand Down Expand Up @@ -464,7 +459,6 @@ the HTTP response being returned. Use them to improve the blog:

.. code-block:: html+php

<?php
// index.php
require_once 'vendor/autoload.php';

Expand Down

0 comments on commit e119979

Please sign in to comment.