本文整理汇总了PHP中Croogo::hookAdminMenu方法的典型用法代码示例。如果您正苦于以下问题:PHP Croogo::hookAdminMenu方法的具体用法?PHP Croogo::hookAdminMenu怎么用?PHP Croogo::hookAdminMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Croogo
的用法示例。
在下文中一共展示了Croogo::hookAdminMenu方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
Croogo::hookRoutes('J2c');
Croogo::hookComponent('*', 'J2c.J2c');
Croogo::hookAdminMenu('J2c');
示例2:
*
* This plugin's Example component will be loaded in ALL controllers.
*/
Croogo::hookComponent('*', 'Example.Example');
/**
* Helper
*
* This plugin's Example helper will be loaded via NodesController.
*/
Croogo::hookHelper('Nodes', 'Example.Example');
/**
* Admin menu (navigation)
*
* This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
*/
Croogo::hookAdminMenu('Example');
/**
* Admin row action
*
* When browsing the content list in admin panel (Content > List),
* an extra link called 'Example' will be placed under 'Actions' column.
*/
Croogo::hookAdminRowAction('Nodes/admin_index', 'Example', 'plugin:example/controller:example/action:index/:id');
/**
* Admin tab
*
* When adding/editing Content (Nodes),
* an extra tab with title 'Example' will be shown with markup generated from the plugin's admin_tab_node element.
*
* Useful for adding form extra form fields if necessary.
*/
示例3: array
<?php
Croogo::hookRoutes('Kieken');
#Croogo::hookBehavior('Node', 'Example.Example', array());
#Croogo::hookComponent('*', 'Kieken.Kieken');
Croogo::hookComponent('Nodes', 'Kieken.KiekenFeatured');
Croogo::hookComponent('Dolfify.Frontpage', 'Kieken.KiekenFeatured');
#Croogo::hookHelper('Nodes', 'Example.Example');
Croogo::hookAdminMenu('Kieken');
#Croogo::hookAdminRowAction('Nodes/admin_index', 'Example', 'plugin:example/controller:example/action:index/:id');
#Croogo::hookAdminTab('Nodes/admin_add', 'Example', 'example.admin_tab_node');
#Croogo::hookAdminTab('Nodes/admin_edit', 'Example', 'example.admin_tab_node');
# Load the Kieken settings
if (file_exists(APP . 'plugins' . DS . 'kieken' . DS . 'config' . DS . 'settings.yml')) {
$settings = Spyc::YAMLLoad(file_get_contents(APP . 'plugins' . DS . 'kieken' . DS . 'config' . DS . 'settings.yml'));
}
foreach ($settings as $settingKey => $settingValue) {
Configure::write($settingKey, $settingValue);
}
示例4:
*
* This plugin's Example component will be loaded in ALL controllers.
*/
Croogo::hookComponent('*', 'Twitterlogin.Twitterlogin');
/**
* Helper
*
* This plugin's Twitterlogin helper will be loaded via UsersController.
*/
Croogo::hookHelper('*', 'Twitterlogin.Twitterlogin');
/**
* Admin menu (navigation)
*
* This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
*/
Croogo::hookAdminMenu('Twitterlogin');
/**
* Admin row action
*
* When browsing the content list in admin panel (Content > List),
* an extra link called 'Example' will be placed under 'Actions' column.
*/
//Croogo::hookAdminRowAction('Twitterlogin/admin_index', 'Twitter Login', 'plugin:twitterlogin/controller:twitterlogin/action:index/:id');
/**
* Admin tab
*
* When adding/editing Content (Nodes),
* an extra tab with title 'Example' will be shown with markup generated from the plugin's admin_tab_node element.
*
* Useful for adding form extra form fields if necessary.
*/
示例5:
*
* This plugin's Example component will be loaded in ALL controllers.
*/
//Croogo::hookComponent('*', 'Example.Example');
/**
* Helper
*
* This plugin's Example helper will be loaded via NodesController.
*/
//Croogo::hookHelper('Nodes', 'Example.Example');
/**
* Admin menu (navigation)
*
* This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
*/
Croogo::hookAdminMenu('Rastreamento');
/**
* Admin row action
*
* When browsing the content list in admin panel (Content > List),
* an extra link called 'Example' will be placed under 'Actions' column.
*/
//Croogo::hookAdminRowAction('Nodes/admin_index', 'Example', 'plugin:example/controller:example/action:index/:id');
/**
* Admin tab
*
* When adding/editing Content (Nodes),
* an extra tab with title 'Example' will be shown with markup generated from the plugin's admin_tab_node element.
*
* Useful for adding form extra form fields if necessary.
*/
示例6:
<?php
Croogo::hookAdminMenu('Passwordprotect');
示例7: array
<?php
$tmp_conf = Configure::read('Nodeattachment');
$conf = array('thumbDir' => APP . 'plugins' . DS . 'nodeattachment' . DS . 'webroot' . DS . 'img' . DS . 'tn', 'iconDir' => APP . 'plugins' . DS . 'nodeattachment' . DS . 'webroot' . DS . 'img', 'flvDir' => APP . 'plugins' . DS . 'nodeattachment' . DS . 'webroot' . DS . 'flv', 'thumbExt' => 'png');
Configure::write('Nodeattachment', Set::merge($tmp_conf, $conf));
Configure::write('Nodeattachment.thumbnailExt', 'png');
Croogo::hookBehavior('Node', 'Nodeattachment.Nodeattachment');
Croogo::hookHelper('*', 'Image2.Image2');
Croogo::hookHelper('*', 'Nodeattachment.Nodeattachment');
Croogo::hookAdminTab('Nodes/admin_edit', 'Attachments', 'nodeattachment.admin_tab_node');
Croogo::hookAdminMenu('Nodeattachment');
示例8:
<?php
Croogo::hookRoutes('Cforms');
Croogo::hookComponent('Nodes', 'Cforms.Cforms');
Croogo::hookHelper('Nodes', 'Cforms.CformCss');
Croogo::hookAdminMenu('Cforms');
示例9:
*
* This plugin's Example component will be loaded in ALL controllers.
*/
//Croogo::hookComponent('*', 'Gallery.Gallery');
/**
* Helper
*
* This plugin's Example helper will be loaded via NodesController.
*/
Croogo::hookHelper('Nodes', 'Gallery.Gallery');
/**
* Admin menu (navigation)
*
* This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
*/
Croogo::hookAdminMenu('Gallery');
/**
* Admin row action
*
* When browsing the content list in admin panel (Content > List),
* an extra link called 'Example' will be placed under 'Actions' column.
*/
// Croogo::hookAdminRowAction('Nodes/admin_index', 'Example', 'plugin:example/controller:example/action:index/:id');
/**
* Admin tab
*
* When adding/editing Content (Nodes),
* an extra tab with title 'Example' will be shown with markup generated from the plugin's admin_tab_node element.
*
* Useful for adding form extra form fields if necessary.
*/
示例10:
<?php
Croogo::hookAdminMenu('ClearCache');