示例#1
0
<?php

use tourze\Base\Base;
Base::getHttp()->header('Content-Type: text/html');
$str = date('Y-m-d H:i:s');
Base::getSession()->set(date('Y-m-d-H-i'), $str);
echo Base::getSession()->get(date('Y-m-d-H-i'));
echo "<br/>";
echo Base::getSession()->id();
echo "<pre>";
var_dump($_SESSION);
echo "</pre>";
//\tourze\Base\Base::getSession()->destroy();
//Base::getHttp()->end('end.');
示例#2
0
文件: Flash.php 项目: tourze/base
 /**
  * {@inheritdoc}
  */
 public function loadMessages()
 {
     Base::getLog()->debug(__METHOD__ . ' load flash messages from session');
     if ($value = Base::getSession()->get($this->settings['key'])) {
         $this->messages['prev'] = $value;
     }
 }