From 694f876bc8655bc00f3a4ae3d650e54d947ea42a Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 20 Sep 2018 01:07:35 -0400 Subject: Add start of single-pad view --- app/index.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app/index.php') 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("Pads"); 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; + } + } } } -- cgit v1.2.3