コード例 #1
0
ファイル: index.php プロジェクト: satully/dev_socialapp
 function GET($path)
 {
     echo web::render("index.php");
 }
コード例 #2
0
ファイル: web.php プロジェクト: satully/dev_socialapp
 /**
  * Load a page under a masked URL
  * @param string URL to mask
  * @return string
  * @access public
  */
 function mask($location)
 {
     require_once 'HTTP/Request.php';
     $req =& new HTTP_Request($location);
     if (!PEAR::isError($req->sendRequest())) {
         echo $req->getResponseBody();
     } else {
         echo web::render('error.html');
     }
 }