소스 검색

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();