diff --git a/assets/files/robots.txt b/assets/files/robots.txt new file mode 100644 index 0000000..7930672 --- /dev/null +++ b/assets/files/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: +Sitemap: https://phpapprentice.com/sitemap.xml diff --git a/assets/files/sitemap.xml b/assets/files/sitemap.xml new file mode 100644 index 0000000..d9fb94d --- /dev/null +++ b/assets/files/sitemap.xml @@ -0,0 +1,117 @@ + + + + + + + https://phpapprentice.com/ + 2018-12-27T01:20:29+00:00 + 1.00 + + + https://phpapprentice.com/installing-php.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/basics.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/variables.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/arithmetic.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/strings.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/comparisons.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/boolean-logic.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/conditionals.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/loops.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/arrays.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/functions.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/classes.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/classes-inheritance.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/classes-visibility.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/classes-constructor.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/static.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/interfaces.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/abstract.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/exceptions.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + https://phpapprentice.com/credits.html + 2018-12-27T01:20:29+00:00 + 0.80 + + + + diff --git a/assets/templates/index.phtml b/assets/templates/index.phtml index 0fa74e5..acb6352 100644 --- a/assets/templates/index.phtml +++ b/assets/templates/index.phtml @@ -15,7 +15,7 @@ The site currently has content for learning the basics of PHP. In the future, more pages will be added for more advanced topics like building websites, database integration and security.

- PHP Apprentice is currently a work in progress. If you would like to contribute or request a certain discussion topic, checkout the GitHub repository. + PHP Apprentice is currently a work in progress. If you would like to contribute or request a certain discussion topic, check out the GitHub repository.

To get started, you will need to install PHP, have a text editor and open your terminal. diff --git a/code/arrays.php b/code/arrays.php index c80b82f..0891bc1 100644 --- a/code/arrays.php +++ b/code/arrays.php @@ -1,6 +1,8 @@ color = $color; } diff --git a/code/exceptions.php b/code/exceptions.php index 6548bfe..d813866 100644 --- a/code/exceptions.php +++ b/code/exceptions.php @@ -20,7 +20,7 @@ $processor = new Processor(); $processor->charge('1234'); // A developer who wants to prevent an exception from stopping code execution -// can catch the exception and use it for logging or a return an error to a user. +// can catch the exception and use it for logging or display the error to a user. // Just wrap the code that might throw an exception with the keyword "try" and brackets // followed by "catch", the exception type in parentheses and more brackets.