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

Removing php opening tags #5965

Merged
merged 1 commit into from
Dec 13, 2015
Merged
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
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