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