From e1a0a829f071c7afa5fcae425ac17c2233acd532 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 26 Nov 2017 14:40:40 +0100 Subject: [PATCH] fix: moved '/public_html/view' to '/view' in order for views not to be seen by browser standalone --- build/router/controller/page.php | 4 ++-- {public_html/view => view}/homepage.php | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename {public_html/view => view}/homepage.php (100%) diff --git a/build/router/controller/page.php b/build/router/controller/page.php index 9a132d5..59a056f 100755 --- a/build/router/controller/page.php +++ b/build/router/controller/page.php @@ -23,8 +23,8 @@ * */ public function load(){ - if( file_exists(__PUBLIC__."/view/".$this->pagename.".php") ) - include __PUBLIC__."/view/".$this->pagename.".php"; + if( file_exists(__ROOT__."/view/".$this->pagename.".php") ) + include __ROOT__."/view/".$this->pagename.".php"; else echo "page not found"; } diff --git a/public_html/view/homepage.php b/view/homepage.php similarity index 100% rename from public_html/view/homepage.php rename to view/homepage.php