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


PHP Croogo::hookRoutes方法代码示例

本文整理汇总了PHP中Croogo::hookRoutes方法的典型用法代码示例。如果您正苦于以下问题:PHP Croogo::hookRoutes方法的具体用法?PHP Croogo::hookRoutes怎么用?PHP Croogo::hookRoutes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Croogo的用法示例。


在下文中一共展示了Croogo::hookRoutes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2:

<?php

Croogo::hookRoutes('J2c');
Croogo::hookComponent('*', 'J2c.J2c');
Croogo::hookAdminMenu('J2c');
开发者ID:rchavik,项目名称:j2c,代码行数:5,代码来源:j2c_bootstrap.php

示例3: array

<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Example');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
Croogo::hookBehavior('Node', 'Example.Example', array());
/**
 * Component
 *
 * 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.
 */
开发者ID:Tamsmiranda,项目名称:croogo,代码行数:31,代码来源:example_bootstrap.php

示例4: array

<?php

Croogo::hookRoutes('ImportCrm');
CroogoNav::add('importcrm', array('icon' => 'th', 'title' => 'Import CRM', 'url' => array('admin' => true, 'plugin' => 'import_crm', 'controller' => 'Importcrms', 'action' => 'index'), 'weight' => 20));
开发者ID:progerio,项目名称:plugins,代码行数:4,代码来源:bootstrap.php

示例5: array

<?php

Croogo::hookRoutes('Emarketing');
// Croogo::hookHelper('Attachments', 'Tinymce.Tinymce');
/**
 * Admin menu (navigation)
 */
CroogoNav::add('emarketing', array('title' => __('Emarketing'), 'icon' => 'envelope large', 'url' => array('admin' => true, 'plugin' => 'emarketing', 'controller' => 'mailings', 'action' => 'index'), 'weight' => 30));
Croogo::mergeConfig('Wysiwyg.actions', array('Mailings/admin_add' => array(array('elements' => 'MailingBody', 'preset' => 'standard')), 'Mailings/admin_edit' => array(array('elements' => 'MailingBody', 'preset' => 'standard'))));
开发者ID:progerio,项目名称:plugins,代码行数:9,代码来源:bootstrap.php

示例6:

<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Rastreamento');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
//Croogo::hookBehavior('Node', 'Rastreamento.Example', array());
/**
 * Component
 *
 * 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.
 */
开发者ID:John-Henrique,项目名称:RF,代码行数:31,代码来源:rastreamento_bootstrap.php

示例7: array

<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Galeria');
/**
 * Admin menu (navigation)
 */
CroogoNav::add('extensions.children.galeria', array('title' => 'Galerias', 'url' => '/admin/galeria/galerias/index', 'children' => array('gallery1' => array('title' => 'Listar Galerias', 'url' => '/admin/galeria/galerias/index'))));
开发者ID:progerio,项目名称:plugins,代码行数:12,代码来源:bootstrap.php

示例8: defined

 * 
 * A must have for every application in the world.
 */
defined('TWITTERLOGIN_DEBUG') or define('TWITTERLOGIN_DEBUG', false);
/**
 * The administrators IP address
 * 
 * Only this user can view the debugging
 */
defined('TWITTERLOGIN_ADMINIP') or define('TWITTERLOGIN_ADMINIP', '71.231.37.59');
/**
 * Routes
 *
 * twitterlogin_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Twitterlogin');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
//Croogo::hookBehavior('Node', 'Example.Example', array());
/**
 * Component
 *
 * This plugin's Example component will be loaded in ALL controllers.
 */
Croogo::hookComponent('*', 'Twitterlogin.Twitterlogin');
/**
 * Helper
 *
开发者ID:Jonathonbyrd,项目名称:Croogo-Twitter-Login,代码行数:31,代码来源:twitterlogin_bootstrap.php

示例9:

<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Tags');
开发者ID:inalto,项目名称:tags,代码行数:8,代码来源:bootstrap.php

示例10: array

<?php

Croogo::hookRoutes('Multiattach');
Croogo::hookComponent('Nodes', 'Multiattach.Multiattaches');
Croogo::hookBehavior('Node', 'Multiattach.Multiattach', array());
//Croogo::hookAdminTab('Nodes/admin_add', 'Attachments', 'Multiattach.admin_tab_node');
Croogo::hookAdminTab('Nodes/admin_edit', 'Attachments', 'Multiattach.admin_tab_node');
CroogoNav::add('settings.children.multiattach', array('title' => __('Multiattach'), 'url' => array('plugin' => 'Multiattach', 'controller' => 'Multiattach', 'action' => 'settings'), 'access' => array('admin')));
开发者ID:issasouktel,项目名称:Multiattach,代码行数:8,代码来源:bootstrap.php

示例11: array

<?php

$useragents = array(array('nome' => '\\"mozilla'), array('nome' => '<?'), array('nome' => '<?php'), array('nome' => 'acquia-crawler'), array('nome' => 'adultsvisitus'), array('nome' => 'alexa'), array('nome' => 'ant'), array('nome' => 'atrax'), array('nome' => 'baiduspider'), array('nome' => 'bdfetch'), array('nome' => 'betabot'), array('nome' => 'bitlybot'), array('nome' => 'biz360'), array('nome' => 'blogblogs'), array('nome' => 'blogcop'), array('nome' => 'blogsearch'), array('nome' => 'blogshares.com'), array('nome' => 'boardreader'), array('nome' => 'btwebclient'), array('nome' => 'buzzzy.com'), array('nome' => 'camontspider'), array('nome' => 'casper'), array('nome' => 'ccbot'), array('nome' => 'cfnetwork'), array('nome' => 'chen'), array('nome' => 'cityreview'), array('nome' => 'comodospider'), array('nome' => 'core-project'), array('nome' => 'curl'), array('nome' => 'cyberpatrol'), array('nome' => 'czxt2s'), array('nome' => 'davclnt'), array('nome' => 'description:'), array('nome' => 'docomo'), array('nome' => 'duckduckpreview;'), array('nome' => 'ecairn-grabber'), array('nome' => 'elinks'), array('nome' => 'exactsearch'), array('nome' => 'explorer'), array('nome' => 'facebookexternalhit'), array('nome' => 'fdm'), array('nome' => 'finly'), array('nome' => 'firebat'), array('nome' => 'fj'), array('nome' => 'gaisbot'), array('nome' => 'gbplugin'), array('nome' => 'geohasher'), array('nome' => 'gigabot'), array('nome' => 'http://networktools'), array('nome' => 'http::lite'), array('nome' => 'ia_archiver'), array('nome' => 'internet'), array('nome' => 'jakarta'), array('nome' => 'java'), array('nome' => 'jayde'), array('nome' => 'jigsaw'), array('nome' => 'jomjaibot'), array('nome' => 'kmccrew'), array('nome' => 'lexxebot'), array('nome' => 'libwww-perl'), array('nome' => 'linkedinbot'), array('nome' => 'linkwithin'), array('nome' => 'loadimpactpageanalyzer'), array('nome' => 'longurl'), array('nome' => 'lwp-request'), array('nome' => 'lwp-trivial'), array('nome' => 'lynx'), array('nome' => 'magent'), array('nome' => 'magpie-crawler'), array('nome' => 'mail.ru'), array('nome' => 'mama'), array('nome' => 'maui'), array('nome' => 'metauri'), array('nome' => 'mlbot'), array('nome' => 'moreoverbot'), array('nome' => 'motorokr'), array('nome' => 'msft_bi'), array('nome' => 'msie'), array('nome' => 'msproxy'), array('nome' => 'msr-isrccrawler'), array('nome' => 'myapp'), array('nome' => 'netestate'), array('nome' => 'noopsis'), array('nome' => 'orbitscripts.com'), array('nome' => 'ossproxy'), array('nome' => 'page_test'), array('nome' => 'panscient.com'), array('nome' => 'pear'), array('nome' => 'php'), array('nome' => 'pirst;'), array('nome' => 'plagger'), array('nome' => 'planetwork'), array('nome' => 'ppc;'), array('nome' => 'psbot'), array('nome' => 'puxarapido'), array('nome' => 'python-urllib'), array('nome' => 'r6_commentreader'), array('nome' => 'r6_feedfetcher'), array('nome' => 'research-scan-bot'), array('nome' => 'rt240x320'), array('nome' => 's2bot'), array('nome' => 'sch-u450'), array('nome' => 'semtobot'), array('nome' => 'sheenbot'), array('nome' => 'simplepie'), array('nome' => 'slimbrowser'), array('nome' => 'snapbot'), array('nome' => 'snk'), array('nome' => 'soap::lite/perl'), array('nome' => 'sogou'), array('nome' => 'sogou+web+robot'), array('nome' => 'sogou-test-spider'), array('nome' => 'sosospider'), array('nome' => 'space'), array('nome' => 'sphider'), array('nome' => 'statoolsbot'), array('nome' => 'str:\'mozilla/5.0'), array('nome' => 'survey'), array('nome' => 'teleca'), array('nome' => 'teoma'), array('nome' => 'test.buzzz'), array('nome' => 'testbot'), array('nome' => 'the'), array('nome' => 'twengabot-discover'), array('nome' => 'twitturly'), array('nome' => 'typhoeus'), array('nome' => 'udmsearch'), array('nome' => 'untiny'), array('nome' => 'url_test'), array('nome' => 'user-agent:'), array('nome' => 'vb'), array('nome' => 'voyager'), array('nome' => 'w3c_validator'), array('nome' => 'webcollage'), array('nome' => 'webcorp'), array('nome' => 'webmoney.advisor'), array('nome' => 'website'), array('nome' => 'webvox'), array('nome' => 'wordpress.com'), array('nome' => 'wtabot'), array('nome' => 'www-mechanize'), array('nome' => 'yahoo'), array('nome' => 'yandex'), array('nome' => 'yeti'), array('nome' => 'ytunnelpro'), array('nome' => 'zschobot'), array('nome' => 'zte-g-n290-base'));
Configure::write('BlockBot.users', $useragents);
Croogo::hookRoutes('BlockBot');
开发者ID:John-Henrique,项目名称:RF,代码行数:5,代码来源:block_bot_bootstrap.php

示例12: array

<?php

/**
 * Routes
 *
 * Revisions_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Revisions');
/**
 * Behavior
 *
 * This plugin's Revisions behavior will be attached whenever Node model is loaded.
 */
Croogo::hookBehavior('Node', 'Revisions.Revisions', array());
/**
 * Component
 *
 * This plugin's Revisions component will be loaded in ALL controllers.
 */
Croogo::hookComponent('*', 'Revisions.Revisions');
/**
 * Helper
 *
 * This plugin's Revisions helper will be loaded via NodesController.
 */
Croogo::hookHelper('Nodes', 'Revisions.Revisions');
/**
 * Admin menu (navigation)
 *
 * This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
 */
开发者ID:rchavik,项目名称:revisions,代码行数:31,代码来源:revisions_bootstrap.php

示例13:

<?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

示例14: array

<?php

Croogo::hookRoutes('Revista');
CroogoNav::add('revista', array('icon' => array('tags', 'large'), 'title' => __('Revista'), 'weight' => 30, 'url' => array('admin' => true, 'plugin' => 'revista', 'controller' => 'editions', 'action' => 'index')));
Croogo::mergeConfig('Wysiwyg.actions', array('Editions/admin_add' => array(array('elements' => 'EditionIntro', 'preset' => 'standard'), array('elements' => 'EditionBanner', 'preset' => 'standard'), array('elements' => 'EditionDescricao', 'preset' => 'basic')), 'Artigos/admin_add' => array(array('elements' => 'ArtigoResumo', 'preset' => 'basic'), array('elements' => 'ArtigoAutores', 'preset' => 'basic'))));
开发者ID:progerio,项目名称:plugins,代码行数:5,代码来源:bootstrap.php

示例15:

<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Gallery');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
//Croogo::hookBehavior('Node', 'Example.Example', array());
/**
 * Component
 *
 * 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.
 */
开发者ID:vitorpacheco,项目名称:gallery,代码行数:31,代码来源:gallery_bootstrap.php


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