File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11<?php
22
33/**
4- * Used to store different static data .
4+ * Used to store website configuration information .
55 *
6- * @var array
6+ * @var string
77 */
8- function config ($ key = '' )
8+ function config ($ key = '' )
99{
10-
1110 $ config = [
12-
11+
1312 'name ' => 'Simple PHP Website ' ,
14-
13+
1514 'nav_menu ' => [
1615 '' => 'Home ' ,
1716 'about-us ' => 'About Us ' ,
1817 'products ' => 'Products ' ,
1918 'contact ' => 'Contact ' ,
2019 ],
21-
20+
2221 'template_path ' => 'template ' ,
23-
22+
2423 'content_path ' => 'content ' ,
25-
24+
2625 'pretty_uri ' => true ,
27-
26+
2827 'version ' => 'v2.0 ' ,
2928 ];
3029
3130 return $ config [$ key ] ?: null ;
32- }
31+ }
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ function pageContent()
6262
6363/**
6464 * Starts everything and displays the template.
65- *
6665 */
6766function run ()
6867{
Original file line number Diff line number Diff line change 1- <?php
1+ <?php
2+
23require 'config.php ' ;
34require 'functions.php ' ;
45
5- run (); ?>
6+ run ();
You can’t perform that action at this time.
0 commit comments