Skip to content

Commit cc2071b

Browse files
author
Jason Varnedoe
committed
split nav into seperate file for easy editing
1 parent e6cbf78 commit cc2071b

15 files changed

+33
-891
lines changed

_includes/nav.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<nav>
2+
<ul>
3+
<li><a href="index.html">Introduction</a></li>
4+
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
5+
<li><a href="operators.html">Calling all operators - Part 2</a></li>
6+
<li><a href="loops.html">Looping the loop - Part 3</a></li>
7+
<li><a href="types.html">The food factor - Part 4</a></li>
8+
<li><a href="files.html">Rank and file - Part 5</a></li>
9+
<li><a href="functions.html">Functionally yours - Part 6</a></li>
10+
<li><a href="objects.html">The bear necessities - Part 7</a></li>
11+
<li><a href="databases.html">Databases and otters - Part 8</a></li>
12+
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
13+
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
14+
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
15+
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
16+
<li><a href="fin.html">A real challenge - Part 14</a></li>
17+
</ul>
18+
</nav>

error-handling.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>Fire-proofing your code</h2>
5437
<p>Even the best developers make mistakes sometimes. That’s why most programming languages

files.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>Back to school</h2>
5437
<p>When you first started reading this series, I promised you that you'd have a whole lot of fun. If you're the cynical type, you may be feeling that I didn't keep my promise. After all, how much fun have you really had so far? All you've done is learn a bunch of theoretical rules, added and subtracted numbers from each other, learnt primitive decision-making and gone round and round in the circular funhouse of loops. Heck, if this wasn't a PHP tutorial, it would be kindergarten...</p>

fin.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>A real challenge</h2>
5437
<p>Now you have all the skills you need to build a real application with PHP. Go do it. At some point, we'll write a nice tutorial to go here.</p>

functions.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>A little knowledge</h2>
5437
<p>If you’ve been taking your regular dose of PHP 101, you know now enough about PHP to write

index.html

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,7 @@ <h1>PHP101</h1>
3030
</div><!-- end banner -->
3131

3232
<div class="wrapper">
33-
<nav>
34-
<ul>
35-
<li><a href="index.html">Introduction</a></li>
36-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
37-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
38-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
39-
<li><a href="types.html">The food factor - Part 4</a></li>
40-
<li><a href="files.html">Rank and file - Part 5</a></li>
41-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
42-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
43-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
44-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
45-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
46-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
47-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
48-
<li><a href="fin.html">A real challenge - Part 14</a></li>
49-
</ul>
50-
</nav>
51-
33+
{% include nav.html %}
5234
<section>
5335
<p>This tutorial is intended for everyone new to PHP. It's a modified version of <a href="http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/">PHP101 for the absolute beginner by Vikram Vaswani</a>. These modifications intend to replace the bulk of the content and provide a modern basis for learning php. Accordingly, the tutorial parts might reference material from there instead. It will be updated in due time. Following is the original introduction.</p>
5436
<p>This area is intended for everyone new to PHP. It opens with a series of informal, entertaining tutorials written by Vikram Vaswani, founder and CEO of Melonfire. These tutorials build on a previously-published 5-part series which has now been updated and extended to embrace PHP 5, making parts of it suitable for those of you who already have worked with PHP 4 in the past.</p>

loops.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>Going deeper</h2>
5437
<p>If you've been paying attention, you remember that in <a href="part2.html">Part Two</a> I gave you a quick crash course in PHP's basic control structures and operators. I also showed you how PHP can be used to process the data entered into a Web form. In this tutorial, I'm going to delve deeper into PHP's operators and control structures, showing you two new operators, an alternative to the if-else() family of conditional statements, and some of PHP's more interesting loops. So keep reading... this is just about to get interesting!</p>

objects.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>Alphabet Soup</h2>
5437
<p>So now you know how to create your own functions in PHP, and

operators.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ <h1>PHP101</h1>
3131
</div><!-- end banner -->
3232

3333
<div class="wrapper">
34-
<nav>
35-
<ul>
36-
<li><a href="index.html">Introduction</a></li>
37-
<li><a href="start.html">Down the rabbit hole - Part 1</a></li>
38-
<li><a href="operators.html">Calling all operators - Part 2</a></li>
39-
<li><a href="loops.html">Looping the loop - Part 3</a></li>
40-
<li><a href="types.html">The food factor - Part 4</a></li>
41-
<li><a href="files.html">Rank and file - Part 5</a></li>
42-
<li><a href="functions.html">Functionally yours - Part 6</a></li>
43-
<li><a href="objects.html">The bear necessities - Part 7</a></li>
44-
<li><a href="databases.html">Databases and otters - Part 8</a></li>
45-
<li><a href="sessions.html">Sessions in cookie jars - Part 10</a></li>
46-
<li><a href="xml.html">Sinfully simple - Part 11</a></li>
47-
<li><a href="error-handling.html">Bugging out - Part 12</a></li>
48-
<li><a href="validation.html">The trashman cometh - Part 13</a></li>
49-
<li><a href="fin.html">A real challenge - Part 14</a></li>
50-
</ul>
51-
</nav>
34+
{% include nav.html %}
5235
<section>
5336
<h2>Not what you expected</h2>
5437
<p>In <a href="part1.html">Part One</a> of this series, I gave you a brief introduction to PHP, and how it fits into your Web application development environment. I also taught you the basics of PHP variables, and showed you how to add, multiply and concatenate them together.</p>

0 commit comments

Comments
 (0)