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