Преглед на файлове

add comments/in-line docs

theshka преди 9 години
родител
ревизия
132399f305
променени са 1 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 12 4
      index.php

+ 12 - 4
index.php

@@ -1,9 +1,17 @@
 <?php
+// load dependencies
 require_once(__DIR__ . '/vendor/autoload.php');
+
+// instance Pico
 $pico = new Pico(
-    __DIR__,
-    'config/',
-    'plugins/',
-    'themes/'
+    __DIR__,    // root dir
+    'config/',  // config dir
+    'plugins/', // plugins dir
+    'themes/'   // themes dir
 );
+
+// override configuration?
+// $pico->setConfig(array());
+
+// run application
 echo $pico->run();