當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。