本文整理汇总了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>' : '';
}