Cixo Develop 6 天之前
父节点
当前提交
6209d760c9
共有 3 个文件被更改,包括 27 次插入0 次删除
  1. 15 0
      index.php
  2. 1 0
      libs/cx-phpath
  3. 11 0
      source/page.php

+ 15 - 0
index.php

@@ -0,0 +1,15 @@
+<?php
+
+namespace markdoc;
+
+function load(string $name): void {
+    $current = __DIR__;
+
+    if ($name[0] !== '/') {
+        $current .= '/';
+    }
+    
+    require_once($current.$name);
+}
+
+load('source/page.php');

+ 1 - 0
libs/cx-phpath

@@ -0,0 +1 @@
+Subproject commit 467f8ba4e36f05e8b670c7ab0dad978add01b411

+ 11 - 0
source/page.php

@@ -0,0 +1,11 @@
+<?php
+
+namespace markdoc;
+
+class page {
+    public function __construct() {
+
+    }
+}
+
+