本文整理汇总了PHP中Action::success方法的典型用法代码示例。如果您正苦于以下问题:PHP Action::success方法的具体用法?PHP Action::success怎么用?PHP Action::success使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Action
的用法示例。
在下文中一共展示了Action::success方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: success
/**
+----------------------------------------------------------
* 操作成功跳转的快捷方法
+----------------------------------------------------------
* @access protected
+----------------------------------------------------------
* @param string $message 提示信息
* @param string $jumpUrl 页面跳转地址
* @param Boolean $ajax 是否为Ajax方式
+----------------------------------------------------------
* @return void
+----------------------------------------------------------
*/
protected function success($message, $jumpUrl = '', $ajax = false)
{
if (!$ajax) {
$this->assign('page_title', '提示信息 - ');
}
parent::success($message, $jumpUrl, $ajax);
exit;
}
示例2: success
protected function success($message, $ajax = 0)
{
if (!$this->get("jumpUrl")) {
if ($_SERVER["HTTP_REFERER"]) {
$default_jump = $_SERVER["HTTP_REFERER"];
} else {
$default_jump = u("Index/main");
}
$this->assign("jumpUrl", $default_jump);
}
parent::success($message, $ajax);
}
示例3: success
protected function success($message, $url_forward = '', $ms = 3, $dialog = false, $ajax = false, $returnjs = '')
{
//$this->jumpUrl = $url_forward;
$this->waitSecond = $ms;
$this->assign('dialog', $dialog);
$this->assign('returnjs', $returnjs);
parent::success($message, $url_forward, $ajax);
}
示例4: success
protected function success($message, $ajax = false)
{
$this->mainTpl = null;
parent::success($message, $ajax);
}
示例5: success
public function success($message, $jumpUrl = '', $ajax = false)
{
C("LAYOUT_NAME", "layout");
parent::success($message, $jumpUrl, $ajax);
}
示例6: success
protected function success($message, $jumpUrl = '')
{
if (isset($this->retFunc['success'])) {
$func = $this->retFunc['success'];
return $this->{$func}($message, $jumpUrl);
} else {
return parent::success($message, $jumpUrl);
}
}