本文整理匯總了PHP中helpers\Session::message方法的典型用法代碼示例。如果您正苦於以下問題:PHP Session::message方法的具體用法?PHP Session::message怎麽用?PHP Session::message使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類helpers\Session
的用法示例。
在下文中一共展示了Session::message方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
echo Navigation::getTitle('fa fa-building', Language::show('title', 'companies'));
?>
</div>
</div>
<!-- /header content -->
</div>
<!-- /page header -->
<!-- Content Area -->
<div class="content">
<?php
echo Session::message('success');
?>
<!-- Panel -->
<div class="panel panel-flat">
<?php
echo $data['content'];
?>
</div>
<!-- /panel -->
</div>
<!-- /content area -->
示例2: foreach
<div class="row">
<div class="col-xs-12">
<div class="panel panel-default mtop15">
<div class="panel-heading">
<h3 class="panel-title">Posts</h3>
<div class="pull-right mtop-20">
<a href="<?php
echo DIR;
?>
admin/posts/add" class="btn btn-xs btn-default" title="Add Post"><i class="fa fa-plus"></i></a>
</div>
</div>
<div class="panel-body">
<?php
echo Session::message('message');
?>
<table class='table table-striped table-hover table-bordered responsive'>
<tr>
<th>Post Name</th>
<th>Title</th>
<th>Action</th>
</tr>
<?php
if ($data['posts']) {
foreach ($data['posts'] as $row) {
echo "<tr>";
echo "<td>{$row->post_name}</td>";
echo "<td>{$row->post_url}</td>";
echo "<td>\n <a href='" . DIR . "admin/posts/edit/{$row->post_id}' class='btn btn-xs btn-primary'>\n <i class='fa fa-pencil'></i>\n </a>\n <a href='" . DIR . "admin/posts/{$row->post_id}' class='btn btn-xs btn-primary'>\n <i class='fa fa-eye'></i>\n </a>\n </td>";
echo "</tr>";
示例3:
<!-- Page header -->
<div class="page-header page-header-xs">
<!-- Header Content -->
<div class="page-header-content">
<div class="page-title">
<?php
echo Navigation::getTitle('icon-users4', Language::show('title_edit', 'users'));
?>
</div>
</div>
<!-- /Header Content -->
<!-- Messages -->
<?php
echo Session::message('success', 'ml-20 mr-20');
?>
<?php
echo Error::display($error, 'alert alert-danger alert-styled-left alert-bordered ml-20 mr-20');
?>
<!-- /Messages -->
<!-- Toolbar -->
<div class="navbar navbar-default navbar-component navbar-xs">
<ul class="nav navbar-nav visible-xs-block">
<li class="full-width text-center"><a data-toggle="collapse" data-target="#navbar-filter"><i class="icon-menu7"></i></a></li>
</ul>
<div class="navbar-collapse collapse" id="navbar-filter">
<ul class="nav navbar-nav element-active-slate-400 nav-tabs-sticky">