当前位置: 首页>>代码示例>>PHP>>正文


PHP Menu::_controller方法代码示例

本文整理汇总了PHP中Menu::_controller方法的典型用法代码示例。如果您正苦于以下问题:PHP Menu::_controller方法的具体用法?PHP Menu::_controller怎么用?PHP Menu::_controller使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Menu的用法示例。


在下文中一共展示了Menu::_controller方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAdminMenu

 public static function getAdminMenu($controller)
 {
     self::$_controller = $controller;
     $items = array(array('label' => '<i class="icon-mail-reply"></i>  Regresar a la App', 'url' => Yii::app()->homeUrl));
     return self::generateMenu($items);
 }
开发者ID:richardm6,项目名称:bdd3-project,代码行数:6,代码来源:Menu.php

示例2: getAdminMenu

 public static function getAdminMenu($controller)
 {
     self::$_controller = $controller;
     $items = array(array('label' => '<i class="aweso-arrow-left"></i> Home', 'url' => Yii::app()->homeUrl), array('label' => '<i class="aweso-user"></i>  Usuarios', 'url' => Yii::app()->user->ui->userManagementAdminUrl, 'access' => 'Cruge.ui.*', 'active_rules' => array('module' => 'cruge')), array('label' => '<i class="aweso-map-marker"></i> Ubicaciones', 'url' => '#', 'itemOptions' => array('class' => 'dropdown-list'), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown-list'), 'items' => array(array('label' => 'País', 'url' => array('/personal/pais/admin/'), 'access' => 'action_pais_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'pais')), array('label' => 'Región', 'url' => array('/personal/region/admin/'), 'access' => 'action_region_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'region')), array('label' => 'Provincia', 'url' => array('/personal/provincia/admin/'), 'access' => 'action_provincia_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'provincia')), array('label' => 'Ciudad', 'url' => array('/personal/ciudad/admin/'), 'access' => 'action_ciudad_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'ciudad')), array('label' => 'Sector', 'url' => array('/personal/sector/admin/'), 'access' => 'action_sector_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'sector')))), array('label' => '<i class="aweso-briefcase"></i> Empleo', 'url' => '#', 'itemOptions' => array('class' => 'dropdown-list'), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown-list'), 'items' => array(array('label' => 'Departamentos', 'url' => array('/personal/empleoDepartamento/admin/'), 'access' => 'action_empleoDepartamento_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'empleoDepartamento')), array('label' => 'Cargos', 'url' => array('/personal/empleoCargo/admin/'), 'access' => 'action_empleoCargo_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'empleoCargo')), array('label' => 'Estados', 'url' => array('/personal/estadoEmpleo/admin/'), 'access' => 'action_estadoEmpleo_admin', 'active_rules' => array('module' => 'personal', 'controller' => 'estadoEmpleo')))), array('label' => '<i class="aweso-tasks"></i> Tareas', 'url' => '#', 'itemOptions' => array('class' => 'dropdown-list'), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown-list'), 'items' => array(array('label' => 'Etapas', 'url' => array('/tareas/tareaEtapa/admin/'), 'access' => 'action_tareaEtapa_admin', 'active_rules' => array('module' => 'tareas', 'controller' => 'tareaEtapa')))), array('label' => '<i class="aweso-file"></i> Informes', 'url' => '#', 'itemOptions' => array('class' => 'dropdown-list'), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown-list'), 'items' => array(array('label' => 'Prioridad', 'url' => array('/notificacion/prioridadInforme/admin/'), 'access' => 'action_prioridadInforme_admin', 'active_rules' => array('module' => 'notificacion', 'controller' => 'prioridadInforme')), array('label' => 'Tipos', 'url' => array('/notificacion/tipoInforme/admin/'), 'access' => 'action_tipoInforme_admin', 'active_rules' => array('module' => 'notificacion', 'controller' => 'tipoInforme')))), array('label' => '<i class="aweso-archive"></i> Solicitud ', 'url' => '#', 'itemOptions' => array('class' => 'dropdown-list'), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown-list'), 'items' => array(array('label' => 'Asuntos', 'url' => array('/actividades/permisoAsunto/admin/'), 'access' => 'action_permisoAsunto_admin', 'active_rules' => array('module' => 'actividades', 'controller' => 'permisoAsunto')), array('label' => 'Etapas', 'url' => array('/actividades/permismoEtapa/admin/'), 'access' => 'action_permismoEtapa_admin', 'active_rules' => array('module' => 'actividades', 'controller' => 'permismoEtapa')))), array('label' => '<i class="aweso-exchange"></i> Turnos ', 'url' => array('/actividades/turno/admin'), 'access' => 'action_turno_admin', 'active_rules' => array('module' => 'actividades', 'controller' => 'turno', 'action' => 'admin')), array('label' => '<i class="aweso-time"></i> Tipo Horario ', 'url' => array('/actividades/horarioTipo/admin'), 'access' => 'action_horarioTipo_admin', 'active_rules' => array('module' => 'actividades', 'controller' => 'horarioTipo', 'action' => 'admin')), array('label' => '<i class="aweso-warning-sign"></i> Tipo Sanción ', 'url' => array('/notificacion/tipoSancion/admin'), 'access' => 'action_tipoSancion_admin', 'active_rules' => array('module' => 'notificacion', 'controller' => 'tipoSancion', 'action' => 'admin')));
     return self::generateMenu($items);
 }
开发者ID:Wladimir89,项目名称:software1grh,代码行数:6,代码来源:Menu.php

示例3: getAdminMenu

 public static function getAdminMenu($controller)
 {
     self::$_controller = $controller;
     $items = array(array('label' => '<i class="icon-mail-reply"></i>  Regresar a la App', 'url' => Yii::app()->homeUrl), array('label' => '<i class="icon-user"></i>  Usuarios', 'url' => Yii::app()->user->ui->userManagementAdminUrl, 'access' => 'Cruge.ui.*', 'active_rules' => array('module' => 'cruge')));
     return self::generateMenu($items);
 }
开发者ID:alexi5h,项目名称:eventosibarra,代码行数:6,代码来源:Menu.php


注:本文中的Menu::_controller方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。