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


PHP Croogo::hookHelper方法代码示例

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


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

示例1: onBootstrapComplete

 /**
  * Hook helper
  */
 public function onBootstrapComplete($event)
 {
     foreach ((array) Configure::read('Wysiwyg.actions') as $action => $settings) {
         if (is_numeric($action)) {
             $action = $settings;
         }
         $actionE = explode('/', $action);
         Croogo::hookHelper($actionE['0'], 'Ckeditor.Ckeditor');
     }
 }
开发者ID:croogo,项目名称:ckeditor,代码行数:13,代码来源:CkeditorEventHandler.php

示例2: array

<?php

Croogo::hookComponent('*', 'Nodes.Nodes');
Croogo::hookHelper('*', 'Nodes.Nodes');
CroogoNav::add('content', array('icon' => array('edit', 'large'), 'title' => __('Content'), 'url' => array('plugin' => 'nodes', 'admin' => true, 'controller' => 'nodes', 'action' => 'index'), 'weight' => 10, 'children' => array('list' => array('title' => __('List'), 'url' => array('plugin' => 'nodes', 'admin' => true, 'controller' => 'nodes', 'action' => 'index'), 'weight' => 10), 'create' => array('title' => __('Create'), 'url' => array('plugin' => 'nodes', 'admin' => true, 'controller' => 'nodes', 'action' => 'create'), 'weight' => 20))));
开发者ID:laiello,项目名称:plankonindia,代码行数:5,代码来源:bootstrap.php

示例3: array

<?php

Croogo::hookComponent('Nodes', array('Meta.Meta' => array('priority' => 8)));
Croogo::hookHelper('*', 'Meta.Meta');
开发者ID:dlpc,项目名称:CakeWX,代码行数:4,代码来源:bootstrap.php

示例4:

<?php

Configure::load('SimpleCaptcha.simple_captcha');
Croogo::hookBehavior('User', 'SimpleCaptcha.Captcha');
Croogo::hookHelper('Users', 'SimpleCaptcha.Captcha');
Croogo::hookComponent('*', 'SimpleCaptcha.Captcha');
开发者ID:rchavik,项目名称:simple_captcha,代码行数:6,代码来源:simple_captcha_bootstrap.php

示例5: array

<?php

/**
 * Configuration
 */
Configure::write('Tinymce.actions', array('Nodes/admin_add' => array(array('elements' => 'NodeBody')), 'Nodes/admin_edit' => array(array('elements' => 'NodeBody')), 'Translate/admin_edit' => array(array('elements' => 'NodeBody'))));
/**
 * Hook helper
 */
foreach (Configure::read('Tinymce.actions') as $action => $settings) {
    $actionE = explode('/', $action);
    Croogo::hookHelper($actionE['0'], 'Tinymce.Tinymce');
}
Croogo::hookHelper('Attachments', 'Tinymce.Tinymce');
开发者ID:rchavik,项目名称:indent-all-the-things,代码行数:14,代码来源:tinymce_bootstrap.php

示例6: array

<?php

CroogoNav::add('sidebar', 'webshop.children.orders', array('title' => __d('webshop_orders', 'Orders'), 'url' => array('admin' => true, 'plugin' => 'webshop_orders', 'controller' => 'orders', 'action' => 'index')));
CroogoNav::add('webshop-customer-dashboard', 'orders', array('title' => __d('webshop_orders', 'Orders'), 'url' => array('prefix' => 'panel', 'plugin' => 'webshop_orders', 'controller' => 'orders', 'action' => 'index')));
CroogoNav::add('webshop-dashboard-order-actions', 'view', array('title' => __d('webshop_orders', 'View'), 'url' => array('controller' => 'orders', 'action' => 'view', '_id'), 'htmlAttributes' => array('class' => 'btn-primary')));
CroogoNav::add('webshop-dashboard-order-actions', 'pay', array('title' => __d('webshop_orders', 'Pay'), 'url' => array('controller' => 'orders', 'action' => 'pay', '_id'), 'htmlAttributes' => array('class' => 'btn-success')));
Croogo::hookHelper('*', 'WebshopOrders.Order');
Croogo::hookAdminTab('Customers/admin_view', __d('webshop_orders', 'Orders'), 'WebshopOrders.admin/tab/orders');
开发者ID:cvo-technologies,项目名称:webshop-orders,代码行数:8,代码来源:bootstrap.php

示例7:

<?php

App::build(array('Vendor' => CakePlugin::path('Minify') . 'Vendor' . DS . 'minify' . DS . 'min' . DS . 'lib' . DS));
Configure::load('Minify.minify');
if (class_exists('Croogo')) {
    Croogo::hookHelper('*', 'Minify.Minify');
}
开发者ID:rchavik,项目名称:minify,代码行数:7,代码来源:bootstrap.php

示例8: array_merge

<?php

$cacheConfig = array_merge(Configure::read('Cache.defaultConfig'), array('groups' => array('taxonomy')));
CroogoCache::config('croogo_types', $cacheConfig);
CroogoCache::config('croogo_vocabularies', $cacheConfig);
Croogo::hookComponent('*', 'Taxonomy.Taxonomies');
Croogo::hookHelper('*', 'Taxonomy.Taxonomies');
Croogo::mergeConfig('Translate.models.Term', array('fields' => array('title' => 'titleTranslation', 'description' => 'descriptionTranslation'), 'translateModel' => 'Taxonomy.Term'));
开发者ID:ahmadhasankhan,项目名称:croogo,代码行数:8,代码来源:bootstrap.php

示例9: array

<?php

/**
 * Configuration
 *
 * These fields will be converted from Markdown text to HTML for nodes.
 */
Configure::write('Markdown.node_fields', array('body'));
/**
 * Hook helper
 */
Croogo::hookHelper('Nodes', 'Markdown.Markdown');
开发者ID:adityar003,项目名称:Cake-Resume-Builder,代码行数:12,代码来源:markdown_bootstrap.php

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

示例11: array

<?php

CroogoNav::add('media.children.attachments', array('title' => __d('croogo', 'Attachments'), 'url' => array('admin' => true, 'plugin' => 'moxie_manager', 'controller' => 'moxie_manager', 'action' => 'index')));
Croogo::hookHelper('*', 'MoxieManager.MoxieManager');
开发者ID:vidalweb,项目名称:MoxieManager,代码行数:4,代码来源:bootstrap.php

示例12:

<?php

Croogo::hookHelper('*', 'Megamenu.Megamenu');
Croogo::hookBehavior('Link', 'Params');
开发者ID:rchavik,项目名称:megamenu,代码行数:4,代码来源:bootstrap.php

示例13: array

 *
 * 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.
 */
//Croogo::hookAdminMenu('Revisions');
/**
 * Admin row action
 *
 * When browsing the content list in admin panel (Content > List),
 * an extra link called 'Revisions' will be placed under 'Actions' column.
 */
//Croogo::hookAdminRowAction('Nodes/admin_index', 'Revisions', 'controller:nodes/action:edit/:id#node-revisions');
/**
 * Admin tab
开发者ID:rchavik,项目名称:revisions,代码行数:31,代码来源:revisions_bootstrap.php

示例14:

<?php

Croogo::hookHelper('Nodes', 'Highlighter.Highlighter');
开发者ID:rchavik,项目名称:highlighter,代码行数:3,代码来源:highlighter_bootstrap.php

示例15: array

<?php

CroogoNav::add('sidebar', 'pltfrm', array('title' => __d('pltfrm', 'Pltfrm'), 'url' => '#', 'weight' => 40, 'children' => array('hosts' => array('title' => __d('pltfrm', 'Hosts'), 'url' => array('plugin' => 'pltfrm', 'controller' => 'webhosting_hosts', 'action' => 'index'), 'weight' => 40))));
Croogo::hookHelper('Nodes', 'Pltfrm.WebhostingProducts');
Croogo::hookBehavior('Node', 'Pltfrm.WebhostingProduct');
Croogo::hookBehavior('Product', 'Pltfrm.WebhostingProduct');
App::build(array('WebhostingProvider' => array('%s' . 'WebhostingProvider' . DS)), App::REGISTER);
开发者ID:cvo-technologies,项目名称:pltfrm,代码行数:7,代码来源:bootstrap.php


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