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