fix: moved '/public_html/view' to '/view' in order for views not to be seen by browser standalone
This commit is contained in:
parent
88f1d3b871
commit
e1a0a829f0
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue