本文整理汇总了PHP中General::mUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP General::mUrl方法的具体用法?PHP General::mUrl怎么用?PHP General::mUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类General
的用法示例。
在下文中一共展示了General::mUrl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexAction
public function indexAction()
{
$this->view->indexpage = true;
if ($this->getRequest()->isPost()) {
$auth = General::login(array('no_email' => $this->getRequest()->getParam('twa_email'), 'tx_senha' => $this->getRequest()->getParam('twa_senha')));
if ($auth) {
header("Location: " . $this->view->url(General::mUrl("home")));
} else {
$this->view->login_error = _("Login ou senha incorretos!");
}
}
if (General::isAuth()) {
$goto = $this->getRequest()->getParam('goto');
$goto = urldecode($goto);
if ($goto) {
header("Location: {$goto}");
} else {
header("Location: " . $this->view->url(General::mUrl("home")));
}
}
}
示例2: logoutAction
/**
* Sair do sistema
*/
public function logoutAction()
{
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout->disableLayout();
// por preucação
unset($_SESSION['tw_auth']);
session_destroy();
header("Location: " . $this->view->url(General::mUrl('index')));
}
示例3: indexAction
public function indexAction()
{
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout->disableLayout();
header("Location: " . $this->view->url(General::mUrl("home")));
}
示例4: url_post
public function url_post($param)
{
if (is_object($param)) {
$nu_post = $param->nu_post;
} else {
$nu_post = $param['nu_post'];
}
return $this->url(General::mUrl("home/post/id/{$nu_post}"), null, true);
}