public function regAction()
 {
     $this->tag->setTitle('reg');
     parent::initTitle();
     $_res = \EoMember::find();
     $this->view->setVar('_res', $_res);
     if ($this->request->isPost()) {
         $data = $_POST;
         $mod_member = new \EoMember();
         $mod_member->username = $data['username'];
         $mod_member->password = md5($data['passwd']);
         $mod_member->photo = 0;
         $mod_member->level = 1;
         // 最低1,管理员0
         $mod_member->addtime = time();
         if ($mod_member->save()) {
             //                $this->display('succcess','注册成功');
         } else {
             //                $this->display('succcess','注册失败');
         }
     } else {
     }
 }
 public function historyAction()
 {
     $this->tag->setTitle('足迹');
     parent::initTitle();
     $this->getDI()->getService('d');
 }
 public function initialize()
 {
     parent::initialize();
     $this->tag->setTitle($_POST['search'] . ' 搜索结果');
     parent::initTitle();
 }
 public function indexAction()
 {
     $this->tag->setTitle('首页');
     parent::initTitle();
     $this->view->setVars(['title' => 123]);
 }
 public function initialize()
 {
     parent::initialize();
     parent::initTitle();
 }
 public function listAction()
 {
     $this->tag->setTitle('列表');
     parent::initTitle();
 }