本文整理汇总了PHP中core\View::widget方法的典型用法代码示例。如果您正苦于以下问题:PHP View::widget方法的具体用法?PHP View::widget怎么用?PHP View::widget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core\View
的用法示例。
在下文中一共展示了View::widget方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexAction
function indexAction()
{
$result = DB::select()->from($this->tablename)->order_by('id')->find_all();
$this->_filter = View::widget(array(), 'Filter/Pages');
$this->_toolbar = View::widget(array(), 'Toolbar/List');
$this->_content = View::tpl(array('result' => $result, 'tpl_folder' => $this->tpl_folder, 'tablename' => $this->tablename), $this->tpl_folder . '/Index');
}
示例2: headerNew
public function headerNew($array = array())
{
$count = 0;
$result = DB::select(array(DB::expr('COUNT(id)'), 'count'))->from('log')->where('deleted', '=', 0)->as_object()->execute()->current();
if ($result) {
$count = $result->count;
}
$result = DB::select()->from('log')->where('deleted', '=', 0)->limit(7)->as_object()->execute();
return $this->_data['headerNew'] = View::widget(array('count' => $count, 'result' => $result), 'HeaderNew');
}
示例3: date
?>
" target="_blank"><?php
echo $obj->alias;
?>
</a></td>
<td width="10%"><?php
echo date('d.m.Y', $obj->event_date);
?>
</td>
<td><?php
echo $obj->main_show ? '<span style="color: green;">Да</span>' : '<span style="color: red">Нет</span>';
?>
</td>
<td width="45" valign="top" class="icon-column status-column">
<?php
echo \Core\View::widget(array('status' => $obj->status, 'id' => $obj->id), 'StatusList');
?>
</td>
<td class="nav-column">
<ul class="table-controls">
<li>
<a class="bs-tooltip dropdownToggle" href="javascript:void(0);" title="Управление"><i class="fa-cog size14"></i></a>
<ul class="dropdownMenu pull-right">
<?php
if (Core\User::caccess() == 'edit' or Core\User::caccess() == 'view') {
?>
<li>
<a href="/backend/<?php
echo \Core\Route::controller();
?>
/edit/<?php