本文整理汇总了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">