Browse Source

add some issues

slacken 13 years ago
parent
commit
47258baed3
3 changed files with 15 additions and 3 deletions
  1. 3 1
      include/controller.php
  2. 12 1
      include/lib.php
  3. 0 1
      include/view.php

+ 3 - 1
include/controller.php

@@ -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{
+				//这里应该有更多的检查
 			}
 		}
 		//显示内容

+ 12 - 1
include/lib.php

@@ -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){
+
+    }
 	
 
 }

+ 0 - 1
include/view.php

@@ -22,7 +22,6 @@ class view{
 		$page = BASE_PATH.'views/'.trim($page,'/').'.php';
 		if(is_readable($page)){
 			ob_start();
-			
 	    	include $page;
 	    	ob_end_flush();
 		}