本文整理匯總了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();
}