本文整理汇总了PHP中Flash::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Flash::show方法的具体用法?PHP Flash::show怎么用?PHP Flash::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flash
的用法示例。
在下文中一共展示了Flash::show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stylesheet_link_tag
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@kumbiaphp.com so we can send you a copy immediately.
*
* Este archivo debe ser incluido desde un controlador
* usando include "test/adapters.php"
*
* @category Kumbia
* @package Test
* @subpackage Flash
* @copyright Copyright (c) 2005-2015 Kumbia Team (http://www.kumbiaphp.com)
* @license http://wiki.kumbiaphp.com/Licencia New BSD License
*/
stylesheet_link_tag('style');
ob_start();
Flash::show('cuidado', 'Kumbia puede ser adictivo.');
flash::error('Test de flash::error');
flash::notice('Test de flash::notice');
flash::success('Test de flash::success');
flash::warning('Test de flash::warning');
flash::interactive('Test de flash::interactive');
flash::kumbia_error('Test de flash::kumbia_error');
$salida = ob_get_contents();
ob_end_clean();
$correcto = '<div class="flash_show cuidado">Kumbia puede ser adictivo.</div>
<div class="flash_show error_message">Test de flash::error</div>
<div class="flash_show notice_message">Test de flash::notice</div>
<div class="flash_show success_message">Test de flash::success</div>
<div class="flash_show warning_message">Test de flash::warning</div>
<div class="flash_show interactive_message">Test de flash::interactive</div>
<div class="flash_show error_message"><em>KumbiaError:</em> Test de flash::kumbia_error</div>
示例2:
?>
</title>
<style type="text/css" media="screen">
.flash { padding: 10px; }
.notice { background: #8FFF9F; color: green; }
.error { background: #FFB0C6; color: red; }
</style>
</head>
<body>
<?Template::load('example.php');?>
<?Flash::show()?>
<h1>Example</h1>
<h3>Asigned from controller:</h3>
<p><?php
echo $this->a_variable_name;
?>
</p>
<p><?php
echo $this->something_happen;
?>
</p>
<h3>Params:</h3>
<p><? String::pr($this->params); ?>