本文整理汇总了PHP中Yum::hasFlash方法的典型用法代码示例。如果您正苦于以下问题:PHP Yum::hasFlash方法的具体用法?PHP Yum::hasFlash怎么用?PHP Yum::hasFlash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Yum
的用法示例。
在下文中一共展示了Yum::hasFlash方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderFlash
public static function renderFlash()
{
if (Yum::hasFlash()) {
echo '<div class="info">';
echo Yum::getFlash();
echo '</div>';
Yii::app()->clientScript->registerScript('fade', "\n\t\t\t\t\tsetTimeout(function() { \$('.info').fadeOut('slow'); },\n\t\t\t\t\t\t{$_SESSION['yum_delay']});\t\n\t\t\t\t\t");
}
}
示例2: array
<section class="container-fluid inner">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 left">
<div class="memberlogin nobefore register">
<h3 class="text-center">Recovery Account</h3>
<?php
$this->pageTitle = Yum::t('Password recovery');
$this->breadcrumbs = array(Yum::t('Login') => Yum::module()->loginUrl, Yum::t('Restore'));
if (Yum::hasFlash()) {
echo '<div class="alert alert-success">';
echo Yum::getFlash();
echo '</div>';
} else {
//echo '<h2>'.Yum::t('Password recovery').'</h2>';
echo CHtml::beginForm('', 'post', array('class' => 'form-group'));
?>
<?php
echo CHtml::errorSummary($form);
?>
<?php
echo CHtml::activeTextField($form, 'login_or_email', $htmlOptions = array('class' => 'form-control', 'placeholder' => 'EMAIL'));
?>
<?php
echo CHtml::error($form, 'login_or_email');
?>
<?php
echo CHtml::submitButton(Yum::t('Restore'), array('class' => 'form-control'));
echo CHtml::endForm();
?>
示例3: renderFlash
public static function renderFlash()
{
if (Yum::hasFlash()) {
echo '<div class="alert"><button type="button" class="close" data-dismiss="alert">×</button>';
echo Yum::getFlash();
echo '</div>';
Yii::app()->clientScript->registerScript('fade', "\r\n setTimeout(function() { \$('.info').fadeOut('slow'); },\r\n {$_SESSION['yum_delay']});\r\n ");
}
if (Yum::module()->debug) {
echo CHtml::openTag('div', array('class' => 'yumwarning'));
echo Yum::t('You are running the Yii User Management Module {version} in Debug Mode!', array('{version}' => Yum::module()->version));
echo CHtml::closeTag('div');
}
}