本文整理汇总了PHP中ControllerActionsName::checkVisibleButton方法的典型用法代码示例。如果您正苦于以下问题:PHP ControllerActionsName::checkVisibleButton方法的具体用法?PHP ControllerActionsName::checkVisibleButton怎么用?PHP ControllerActionsName::checkVisibleButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ControllerActionsName
的用法示例。
在下文中一共展示了ControllerActionsName::checkVisibleButton方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$this->breadcrumbs = array('Layouts');
$menus = array(array('label' => 'Create Layouts', 'url' => array('create')));
$this->menu = ControllerActionsName::createMenusRoles($menus, $actions);
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('layouts-grid', {\n url : \$(this).attr('action'),\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
Yii::app()->clientScript->registerScript('ajaxupdate', "\n\$('#layouts-grid a.ajaxupdate').live('click', function() {\n \$.fn.yiiGridView.update('layouts-grid', {\n type: 'POST',\n url: \$(this).attr('href'),\n success: function() {\n \$.fn.yiiGridView.update('layouts-grid');\n }\n });\n return false;\n});\n");
?>
<h1>List Layouts</h1>
<?php
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->
<?php
$visible = ControllerActionsName::checkVisibleButton($actions);
$this->widget('zii.widgets.grid.CGridView', array('id' => 'layouts-grid', 'dataProvider' => $model->search(), 'columns' => array(array('header' => 'S/N', 'type' => 'raw', 'value' => '$row+1', 'headerHtmlOptions' => array('width' => '30px', 'style' => 'text-align:center;'), 'htmlOptions' => array('style' => 'text-align:center;')), array('name' => 'title', 'htmlOptions' => array('style' => 'text-align:center;')), array('name' => 'content', 'htmlOptions' => array('style' => 'text-align:center;')), array('header' => 'Display Order', 'name' => 'order', 'htmlOptions' => array('style' => 'text-align:center;')), array('header' => 'Status', 'name' => 'status', 'type' => 'status', 'htmlOptions' => array('style' => 'text-align:center;'), 'value' => 'array("status"=>$data->status,"id"=>$data->id)', 'visible' => $visible), array('class' => 'CButtonColumn', 'template' => ControllerActionsName::createIndexButtonRoles($actions)))));