File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ the code that prepares the HTML "presentation":
8585
8686.. code-block :: html+php
8787
88- <?php
8988 // index.php
9089 $link = mysql_connect('localhost', 'myuser', 'mypassword');
9190 mysql_select_db('blog_db', $link);
@@ -146,7 +145,6 @@ of the application are isolated in a new file called ``model.php``:
146145
147146.. code-block :: html+php
148147
149- <?php
150148 // model.php
151149 function open_database_connection()
152150 {
@@ -188,7 +186,6 @@ The controller (``index.php``) is now very simple:
188186
189187.. code-block :: html+php
190188
191- <?php
192189 require_once 'model.php';
193190
194191 $posts = get_all_posts();
@@ -280,7 +277,6 @@ page:
280277
281278.. code-block :: html+php
282279
283- <?php
284280 require_once 'model.php';
285281
286282 $post = get_post_by_id($_GET['id']);
@@ -361,7 +357,6 @@ on the requested URI:
361357
362358.. code-block :: html+php
363359
364- <?php
365360 // index.php
366361
367362 // load and initialize any global libraries
@@ -464,7 +459,6 @@ the HTTP response being returned. Use them to improve the blog:
464459
465460.. code-block :: html+php
466461
467- <?php
468462 // index.php
469463 require_once 'vendor/autoload.php';
470464
You can’t perform that action at this time.
0 commit comments