<?php
if(isset($params)) {
	if(!is_array($params)) {
		switch($params) {
			case '404':
				require(VIEWS_DIR.'/404.php');
			break;
			case 'home':
				if(defined('HOMEPAGE')) {
					if(is_url(HOMEPAGE)) {
						redirect(HOMEPAGE);
					} else {
						//require(VIEWS_DIR.'/'.HOMEPAGE.'.php
						require(CONTROL_DIR.'/'.HOMEPAGE.'.php');
					}
				}
			break;
			default:
				require(VIEWS_DIR.'/404.php');
			break;
		}
	}
}