示例#1
0
 public function index()
 {
     parent::__construct();
     $t = $this->_template;
     $t->content = "Nothing to see here.";
     echo $t->render('main.php');
 }
示例#2
0
 public function __construct($args)
 {
     parent::__construct($args);
     $this->_throttle();
     $tok = $_POST['tok'] ? $_POST['tok'] : $_GET['tok'];
     $this->_async = True;
     if ($this->_session->get_tok() != $tok) {
         throw new \Core\HTTPError(401, $this->_args['method']);
     }
 }