Пример #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
 public function indexAction()
 {
     //$user_service = new UserService();
     $user_service = new UserService();
     var_dump($user_service->getUserByPage(1, 1));
     $this->view->assign('title', 'Hello world!');
     $this->view->setJsConfig(array('files' => array('jquery')));
     //$str = "fjakldjflakg'ja'gjqpoigjq;k<>faf<a href=www.baidu.com>www.baidu.com</a>";
     //echo Star_Filter::escape($str);
     //echo date('Y-m-d H:i:s', Star_Date::getLastWeek());
     echo "Hello world";
 }