File tree 1 file changed +0
-6
lines changed
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":
85
85
86
86
.. code-block :: html+php
87
87
88
- <?php
89
88
// index.php
90
89
$link = mysql_connect('localhost', 'myuser', 'mypassword');
91
90
mysql_select_db('blog_db', $link);
@@ -146,7 +145,6 @@ of the application are isolated in a new file called ``model.php``:
146
145
147
146
.. code-block :: html+php
148
147
149
- <?php
150
148
// model.php
151
149
function open_database_connection()
152
150
{
@@ -188,7 +186,6 @@ The controller (``index.php``) is now very simple:
188
186
189
187
.. code-block :: html+php
190
188
191
- <?php
192
189
require_once 'model.php';
193
190
194
191
$posts = get_all_posts();
@@ -280,7 +277,6 @@ page:
280
277
281
278
.. code-block :: html+php
282
279
283
- <?php
284
280
require_once 'model.php';
285
281
286
282
$post = get_post_by_id($_GET['id']);
@@ -361,7 +357,6 @@ on the requested URI:
361
357
362
358
.. code-block :: html+php
363
359
364
- <?php
365
360
// index.php
366
361
367
362
// load and initialize any global libraries
@@ -464,7 +459,6 @@ the HTTP response being returned. Use them to improve the blog:
464
459
465
460
.. code-block :: html+php
466
461
467
- <?php
468
462
// index.php
469
463
require_once 'vendor/autoload.php';
470
464
You can’t perform that action at this time.
0 commit comments