fix: moved '/public_html/view' to '/view' in order for views not to be seen by browser standalone

This commit is contained in:
xdrm-brackets 2017-11-26 14:40:40 +01:00
parent 88f1d3b871
commit e1a0a829f0
2 changed files with 2 additions and 2 deletions

View File

@ -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";
}