本文整理汇总了PHP中CommonController::initTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonController::initTitle方法的具体用法?PHP CommonController::initTitle怎么用?PHP CommonController::initTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonController
的用法示例。
在下文中一共展示了CommonController::initTitle方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: regAction
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 {
}
}
示例2: historyAction
public function historyAction()
{
$this->tag->setTitle('足迹');
parent::initTitle();
$this->getDI()->getService('d');
}
示例3: initialize
public function initialize()
{
parent::initialize();
$this->tag->setTitle($_POST['search'] . ' 搜索结果');
parent::initTitle();
}
示例4: indexAction
public function indexAction()
{
$this->tag->setTitle('首页');
parent::initTitle();
$this->view->setVars(['title' => 123]);
}
示例5: initialize
public function initialize()
{
parent::initialize();
parent::initTitle();
}
示例6: listAction
public function listAction()
{
$this->tag->setTitle('列表');
parent::initTitle();
}