예제 #1
0
 public function indexAction()
 {
     return;
     Star_Http_Response::setBrownerCache(600);
     $user_service = new UserService();
     $user_service->getUserByPage(1, 10);
     /*
            $this->openCache('', 0);
            if ($this->isCache())
            {
                return $this->showCache();
            }
     */
     //$this->view->assign('title', 'Hello world!');
     //$this->view->setJsConfig(array(
     //    'files' => array('jquery')
     //));
     echo date('Y-m-d H:i:s');
     //$str = "fjakldjflakg'ja'gjqpoigjq;k<>faf<a href=www.baidu.com>www.baidu.com</a>";
     //echo Star_Filter::escape($str);
     //$this->view->assign(array('title' => 'Hello world', 'data' => 'fadjfakl'));
     //echo date('Y-m-d H:i:s', Star_Date::getLastWeek());
     //echo "Hello world";
     //$this->view->setNoRender();
     //$this->render('hello');
 }
예제 #2
0
 protected function _initHttpCache()
 {
     if (Star_Http_Request::isCache() == true) {
         header('Cache-control: private');
         header(Star_Http_Response::getCodeMessage(304));
         exit;
     }
 }