當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Flash::show方法代碼示例

本文整理匯總了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>
開發者ID:criferlo,項目名稱:empolab,代碼行數:31,代碼來源:flash.php

示例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); ?>
開發者ID:469306621,項目名稱:Languages,代碼行數:31,代碼來源:index.php


注:本文中的Flash::show方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。