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


PHP Controller::index方法代码示例

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


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

示例1: index

    public function index()
    {
        parent::index();
        $manager = PluginManager::instance();
        $this->addBtns = $manager->exists('shahiemseymor.roles') ? '
        <div class="layout-row">
            <div class="padded-container">
                <div class="callout callout-info">
                    <div class="header">
                    <p>It looks like you have "Frontend User Roles Manager" installed.<br />
                    I can try help you transfer data over to the "Passage Keys" to save you time.<br />
                    For best results press red buttons in order from Left to Right.</p>
                    <a href="#"
                      data-request="onConvertFromPerms"
                      data-load-indicator="Loading..."
                      data-request-confirm="Are you sure you want all Permissions copied into Passage Keys?"
                      class="btn btn-danger  oc-icon-exchange ">
                      (1) Transfer Permissions to Passage Keys
                    </a>
                    <p>&nbsp;</p>

                    <a href="#"
                      data-request="onConvertFromRoles"
                      data-load-indicator="Loading..."
                      data-request-confirm="Are you sure you want all Roles copied into User Groups?"
                      class="btn btn-danger  oc-icon-exchange ">
                      (2) Transfer Roles to User Groups
                    </a><p>&nbsp;</p>

                    <a href="#"
                      data-request="onConvertFromRolesPerms"
                      data-load-indicator="Loading..."
                      data-request-confirm="Are you sure you want all Goup Permissions copied into Group Passage Keys?"
                      class="btn btn-danger  oc-icon-exchange ">
                      (3) Transfer Goup Permissions to Group Passage Keys
                    </a>
                    <p class="small">This notice will go away if you uninstall "Frontend User Roles Manager".</p>
                    </div>
                </div>
            </div>
        </div>' : '';
    }
开发者ID:firemankurt,项目名称:passage,代码行数:42,代码来源:Keys.php


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