@@ -12,7 +12,7 @@ class controller{
public function __construct($request = ''){
- $this->content_type = 'text/plain';
+ $this->content_type = 'text/html';
$this->error_type = 0;
$this->succeed = TRUE;
@@ -73,6 +73,8 @@ class controller{
if(empty($content)){
$this->error_type = 3;
$this->succeed = FALSE;
+ }else{
+ //这里应该有更多的检查
}
//显示内容
@@ -4,7 +4,18 @@ if ( ! defined('BASE_PATH')) exit('No direct script access allowed');
* 公共函数
* */
class lib{
-
+ /**
+ * 检查环境
+ **/
+ public static function check(){
+
+ }
+ * 是否为URL
+ public static function is_url($url){
@@ -22,7 +22,6 @@ class view{
$page = BASE_PATH.'views/'.trim($page,'/').'.php';
if(is_readable($page)){
ob_start();
include $page;
ob_end_flush();