Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ini_set('display_errors', 1); // function script allows a script to temporarily override a setting in PHP congif file - display errprs set to on, represented by 1
- ini_set('display_startup_errors', 1); // set to true with 1 to display to override and display the errors
- error_reporting(E_ALL & ~E_NOTICE); // report all errors except E_NOTICE
- require_once(__DIR__.'/includes/boot.include.php');
- echo $smarty->testInstall();
- if($_GET['p']){ // check if a page is requested and assign smarty to display the requested view
- $smarty->assign('view_name',$_GET['p']);
- require_once('controllers/'.$_GET['p'].'.php');
- $smarty->display('pages/'.$_GET['p'].'.tpl');
- }else{
- $smarty->assign('view_name', 'login')
- }
- /*
- }else{ // else if no page is requested default to page view login
- require_once('controllers/login.php');
- $smarty->display('pages/login.tpl');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement