本文整理汇总了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');
}
}
示例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))));
示例3: array
<?php
Croogo::hookComponent('Nodes', array('Meta.Meta' => array('priority' => 8)));
Croogo::hookHelper('*', 'Meta.Meta');
示例4:
<?php
Configure::load('SimpleCaptcha.simple_captcha');
Croogo::hookBehavior('User', 'SimpleCaptcha.Captcha');
Croogo::hookHelper('Users', 'SimpleCaptcha.Captcha');
Croogo::hookComponent('*', 'SimpleCaptcha.Captcha');
示例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');
示例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');
示例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');
}
示例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'));
示例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');
示例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');
示例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');
示例12:
<?php
Croogo::hookHelper('*', 'Megamenu.Megamenu');
Croogo::hookBehavior('Link', 'Params');
示例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
示例14:
<?php
Croogo::hookHelper('Nodes', 'Highlighter.Highlighter');
示例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);