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


PHP Croogo::hookAdminMenu方法代码示例

本文整理汇总了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');
开发者ID:rchavik,项目名称:j2c,代码行数:5,代码来源:j2c_bootstrap.php

示例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.
 */
开发者ID:Tamsmiranda,项目名称:croogo,代码行数:31,代码来源:example_bootstrap.php

示例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);
}
开发者ID:justinvw,项目名称:kieken,代码行数:19,代码来源:kieken_bootstrap.php

示例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.
 */
开发者ID:Jonathonbyrd,项目名称:Croogo-Twitter-Login,代码行数:31,代码来源:twitterlogin_bootstrap.php

示例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.
 */
开发者ID:John-Henrique,项目名称:RF,代码行数:31,代码来源:rastreamento_bootstrap.php

示例6:

<?php

Croogo::hookAdminMenu('Passwordprotect');
开发者ID:rchavik,项目名称:PasswordProtect,代码行数:3,代码来源:passwordprotect_bootstrap.php

示例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');
开发者ID:ryansnowden,项目名称:nodeattachment,代码行数:11,代码来源:nodeattachment_bootstrap.php

示例8:

<?php

Croogo::hookRoutes('Cforms');
Croogo::hookComponent('Nodes', 'Cforms.Cforms');
Croogo::hookHelper('Nodes', 'Cforms.CformCss');
Croogo::hookAdminMenu('Cforms');
开发者ID:rchavik,项目名称:croogo-cakeforms,代码行数:6,代码来源:cforms_bootstrap.php

示例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.
 */
开发者ID:vitorpacheco,项目名称:gallery,代码行数:31,代码来源:gallery_bootstrap.php

示例10:

<?php
	Croogo::hookAdminMenu('ClearCache');

开发者ID:ricog,项目名称:clear_cache,代码行数:2,代码来源:clear_cache_bootstrap.php


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