本文整理匯總了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> </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> </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>' : '';
}