本文整理汇总了PHP中app\Page::before方法的典型用法代码示例。如果您正苦于以下问题:PHP Page::before方法的具体用法?PHP Page::before怎么用?PHP Page::before使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\Page
的用法示例。
在下文中一共展示了Page::before方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: before
public function before()
{
parent::before();
if (!$this->execute) {
return;
}
}
示例2: before
/**
* require auth
*/
public function before()
{
$this->secure();
if (is_null($this->getUser())) {
$this->redirect('/user/login?return_url=' . rawurlencode($this->request->server('REQUEST_URI')));
}
parent::before();
}
示例3: before
/**
* require auth
*/
public function before()
{
if (is_null($this->pixie->auth->user())) {
$this->redirect('/user/login?return_url=' . rawurlencode($this->request->server('REQUEST_URI')));
}
parent::before();
if (!$this->execute) {
return;
}
$this->useRest = $this->pixie->getParameter('parameters.rest_in_profile', false);
$this->view->useRest = $this->useRest;
}
示例4: before
public function before()
{
$this->secure();
parent::before();
}
示例5: before
public function before()
{
parent::before();
$this->view->host = $this->request->getSiteUrl();
}
示例6: before
/**
* require auth
*/
public function before()
{
parent::before();
}