diff options
author | Malf Furious <m@lfurio.us> | 2018-09-20 01:07:35 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-20 01:07:35 -0400 |
commit | 694f876bc8655bc00f3a4ae3d650e54d947ea42a (patch) | |
tree | 32da0bae970a3464bb3f0bfb37e65d140984da54 /app/index.php | |
parent | d16ddc164b82c594680359841eeeaa1e26aceaa1 (diff) | |
download | scrott-694f876bc8655bc00f3a4ae3d650e54d947ea42a.tar.gz scrott-694f876bc8655bc00f3a4ae3d650e54d947ea42a.zip |
Add start of single-pad view
Diffstat (limited to '')
-rw-r--r-- | app/index.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php index d20aaff..182ab1b 100644 --- a/app/index.php +++ b/app/index.php @@ -69,6 +69,21 @@ function main(array $argv) : void setPageName("<i>Pads</i>"); require "view/pads.php"; break; + + default: + /* view object */ + if (table::isGUID($argv[0])) + { + switch (obj::typeOf($argv[0])) + { + case "pad": + $obj = new pad($argv[0]); + setPageObj($obj); + setPageName($obj->name); + require "view/pad.php"; + break; + } + } } } |