本文整理汇总了PHP中TemplateLoader::addFiles方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateLoader::addFiles方法的具体用法?PHP TemplateLoader::addFiles怎么用?PHP TemplateLoader::addFiles使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateLoader
的用法示例。
在下文中一共展示了TemplateLoader::addFiles方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('HeimrichHannot'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('HeimrichHannot\\Banner\\ModuleBannerTag' => 'system/modules/banner_plus/classes/ModuleBannerTag.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_banner_list_fireplace_ad' => 'system/modules/banner_plus/templates/banner'));
示例2:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the classes
*/
ClassLoader::addClasses(array('Contao\\FaqCategoryModel' => 'system/modules/faq/models/FaqCategoryModel.php', 'Contao\\FaqModel' => 'system/modules/faq/models/FaqModel.php', 'Contao\\ModuleFaq' => 'system/modules/faq/modules/ModuleFaq.php', 'Contao\\ModuleFaqList' => 'system/modules/faq/modules/ModuleFaqList.php', 'Contao\\ModuleFaqPage' => 'system/modules/faq/modules/ModuleFaqPage.php', 'Contao\\ModuleFaqReader' => 'system/modules/faq/modules/ModuleFaqReader.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_faqlist' => 'system/modules/faq/templates/modules', 'mod_faqpage' => 'system/modules/faq/templates/modules', 'mod_faqreader' => 'system/modules/faq/templates/modules'));
示例3:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Inserttag_download
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('HeimrichHannot'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('HeimrichHannot\\InserttagDownload' => 'system/modules/inserttag_download/classes/InserttagDownload.php', 'ContentDownloadInserttag' => 'system/modules/inserttag_download/classes/ContentDownloadInserttag.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('ce_download_inserttag' => 'system/modules/inserttag_download/templates/elements', 'block_searchable_inline' => 'system/modules/inserttag_download/templates/blocks'));
示例4:
<?php
/**
* Responsive Navigation Extension for Contao
*
* Copyright (c) 2016 Falko Schumann
*
* @package ResponsiveNavigation
* @link https://github.com/falkoschumann/contao-responsive-navigation
* @license http://opensource.org/licenses/MIT MIT
*/
/**
* Register the templates.
*/
TemplateLoader::addFiles(array('j_responsive_navigation' => 'system/modules/responsive-navigation/templates/jquery'));
示例5:
<?php
/**
* ajaxform extension for Contao Open Source CMS
*
* @copyright Copyright (c) 2009-2014, terminal42 gmbh
* @author terminal42 gmbh <info@terminal42.ch>
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @link http://github.com/aschempp/contao-ajaxform
*/
/**
* Register the classes
*/
ClassLoader::addClasses(array('AjaxForm' => 'system/modules/ajaxform/AjaxForm.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('ajaxform_confirm' => 'system/modules/ajaxform/templates', 'ajaxform_inline' => 'system/modules/ajaxform/templates', 'ajaxform' => 'system/modules/ajaxform/templates'));
示例6:
<?php
/**
* The MetaModels extension allows the creation of multiple collections of custom items,
* each with its own unique set of selectable attributes, with attribute extendability.
* The Front-End modules allow you to build powerful listing and filtering of the
* data in each collection.
*
* PHP version 5
* @package MetaModels
* @subpackage AttributeNumeric
* @author Christian Schiffler <c.schiffler@cyberspectrum.de>
* @author Stefan Heimes <stefan_heimes@hotmail.com>
* @author Andreas Isaak <info@andreas-isaak.de>
* @author David Greminger <david.greminger@1up.io>
* @copyright The MetaModels team.
* @license LGPL.
* @filesource
*/
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mm_attr_numeric' => 'system/modules/metamodelsattribute_numeric/templates'));
示例7:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2016 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the classes
*/
ClassLoader::addClasses(array('Contao\\Comments' => 'system/modules/comments/classes/Comments.php', 'Contao\\ContentComments' => 'system/modules/comments/elements/ContentComments.php', 'Contao\\CommentsModel' => 'system/modules/comments/models/CommentsModel.php', 'Contao\\CommentsNotifyModel' => 'system/modules/comments/models/CommentsNotifyModel.php', 'Contao\\ModuleComments' => 'system/modules/comments/modules/ModuleComments.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('com_default' => 'system/modules/comments/templates/comments', 'ce_comments' => 'system/modules/comments/templates/elements', 'mod_comment_form' => 'system/modules/comments/templates/modules'));
示例8:
<?php
/**
* pageimage Extension for Contao Open Source CMS
*
* @copyright Copyright (c) 2009-2014, terminal42 gmbh
* @author terminal42 gmbh <info@terminal42.ch>
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @link http://github.com/terminal42/contao-pageimage
*/
/**
* Register the classes
*/
ClassLoader::addClasses(array('ModulePageImage' => 'system/modules/pageimage/ModulePageImage.php', 'ModuleBackgroundImage' => 'system/modules/pageimage/ModuleBackgroundImage.php', 'PageImage' => 'system/modules/pageimage/PageImage.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_pageimage' => 'system/modules/pageimage/templates', 'mod_background_image' => 'system/modules/pageimage/templates'));
示例9:
<?php
/**
* rte_table extension for Contao Open Source CMS
*
* @copyright Copyright (c) 2008-2016, terminal42 gmbh
* @author terminal42 gmbh <info@terminal42.ch>
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @link http://github.com/terminal42/rte_table
*/
/**
* Register the templates
*/
TemplateLoader::addFiles(['be_rte_table_editor' => 'system/modules/rte_table/templates/backend']);
示例10:
<?php
/**
* @package contao-bootstrap
* @author David Molineus <david.molineus@netzmacht.de>
* @license LGPL 3+
* @copyright 2013-2015 netzmacht creative David Molineus
*/
TemplateLoader::addFiles(array('be_subcolumns_bootstrap' => 'system/modules/bootstrap-grid/templates', 'ce_colsetPart' => 'system/modules/bootstrap-grid/templates', 'form_colset' => 'system/modules/bootstrap-grid/templates', 'mod_subcolumns' => 'system/modules/bootstrap-grid/templates'));
示例11:
<?php
/**
* Isotope eCommerce for Contao Open Source CMS
*
* Copyright (C) 2009-2014 terminal42 gmbh & Isotope eCommerce Workgroup
*
* @package Isotope
* @link http://isotopeecommerce.org
* @license http://opensource.org/licenses/lgpl-3.0.html
*/
/**
* Register PSR-0 namespace
*/
NamespaceClassLoader::add('Isotope', 'system/modules/isotope_reports/library');
/**
* Register the templates
*/
TemplateLoader::addFiles(array('be_iso_reports' => 'system/modules/isotope_reports/templates', 'iso_report_default' => 'system/modules/isotope_reports/templates', 'iso_report_sales_total' => 'system/modules/isotope_reports/templates', 'iso_report_members_guests' => 'system/modules/isotope_reports/templates'));
示例12:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package SyncCto
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the classes
*/
ClassLoader::addClasses(array('SyncCtoTableBackupFile' => 'system/modules/syncCto/SyncCtoTableBackupFile.php', 'GeneralDataSyncCto' => 'system/modules/syncCto/GeneralDataSyncCto.php', 'SyncCtoFilterIteratorFolder' => 'system/modules/syncCto/SyncCtoFilterIteratorFolder.php', 'SyncCtoUpdater' => 'system/modules/syncCto/SyncCtoUpdater.php', 'SyncCtoRunOnceEr' => 'system/modules/syncCto/SyncCtoRunOnceEr.php', 'SyncCtoSubscriber' => 'system/modules/syncCto/SyncCtoSubscriber.php', 'InterfaceSyncCtoStep' => 'system/modules/syncCto/InterfaceSyncCtoStep.php', 'SyncCtoTableSettings' => 'system/modules/syncCto/SyncCtoTableSettings.php', 'SyncCtoPopupFiles' => 'system/modules/syncCto/SyncCtoPopupFiles.php', 'SyncCtoModuleCheck' => 'system/modules/syncCto/SyncCtoModuleCheck.php', 'SyncCtoEnum' => 'system/modules/syncCto/SyncCtoEnum.php', 'SyncCtoCommunicationClient' => 'system/modules/syncCto/SyncCtoCommunicationClient.php', 'SyncCtoFilterIteratorBase' => 'system/modules/syncCto/SyncCtoFilterIteratorBase.php', 'StepPool' => 'system/modules/syncCto/StepPool.php', 'SyncCtoHelper' => 'system/modules/syncCto/SyncCtoHelper.php', 'SyncCtoModuleClient' => 'system/modules/syncCto/SyncCtoModuleClient.php', 'SyncCtoStats' => 'system/modules/syncCto/SyncCtoStats.php', 'SyncCtoDatabase' => 'system/modules/syncCto/SyncCtoDatabase.php', 'SyncCtoTableSyncFrom' => 'system/modules/syncCto/SyncCtoTableSyncFrom.php', 'SyncCtoTableBackupDatabase' => 'system/modules/syncCto/SyncCtoTableBackupDatabase.php', 'SyncCtoFilterIteratorFiles' => 'system/modules/syncCto/SyncCtoFilterIteratorFiles.php', 'SyncCtoModuleBackup' => 'system/modules/syncCto/SyncCtoModuleBackup.php', 'SyncCtoAjax' => 'system/modules/syncCto/SyncCtoAjax.php', 'SyncCtoTableBase' => 'system/modules/syncCto/SyncCtoTableBase.php', 'SyncCtoFiles' => 'system/modules/syncCto/SyncCtoFiles.php', 'SyncCtoRPCFunctions' => 'system/modules/syncCto/SyncCtoRPCFunctions.php', 'SyncCtoPopupDB' => 'system/modules/syncCto/SyncCtoPopupDB.php', 'SyncCtoDatabaseUpdater' => 'system/modules/syncCto/SyncCtoDatabaseUpdater.php', 'SyncCtoTableSyncTo' => 'system/modules/syncCto/SyncCtoTableSyncTo.php', 'ContentData' => 'system/modules/syncCto/ContentData.php', 'SyncCtoContaoAutomator' => 'system/modules/syncCto/SyncCtoContaoAutomator.php', 'SyncCto\\Sync\\FileList\\Base' => 'system/modules/syncCto/src/SyncCto/FileList/Base.php', 'SyncCto\\Sync\\FileList\\FilterIterator\\Base' => 'system/modules/syncCto/src/SyncCto/FileList/FilterIterator/Base.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('be_syncCto_steps' => 'system/modules/syncCto/templates', 'be_syncCto_check' => 'system/modules/syncCto/templates', 'be_syncCto_attention' => 'system/modules/syncCto/templates', 'be_syncCto_error' => 'system/modules/syncCto/templates', 'be_syncCto_smallCheck' => 'system/modules/syncCto/templates', 'be_syncCto_popup' => 'system/modules/syncCto/templates', 'be_syncCto_backup' => 'system/modules/syncCto/templates', 'be_syncCto_form' => 'system/modules/syncCto/templates', 'be_syncCto_database' => 'system/modules/syncCto/templates', 'be_syncCto_files' => 'system/modules/syncCto/templates', 'be_syncCto_legend' => 'system/modules/syncCto/templates'));
示例13:
<?php
/**
* Contao Open Source CMS
*
* @copyright inspiredminds.at 2014
* @author Fritz Michael Gschwantner <fmg@inspiredminds.at>
* @package magnific_popup
* @license GNU GPL v2.0
*/
/**
* Register the templates
*/
TemplateLoader::addFiles(array('j_magnific_popup' => 'system/modules/magnific_popup/templates'));
示例14:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package PHPInfo
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('PHPInfo'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('PHPInfo\\PHPInfo' => 'system/modules/PHPInfo/classes/PHPInfo.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('be_PHPInfo' => 'system/modules/PHPInfo/templates'));
示例15:
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2015 Leo Feyer
*
* @package mmenu
* @author Dirk Klemmt
* @license MIT/GPL
* @copyright Dirk Klemmt 2013-2015
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('Dirch'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('Dirch\\mmenu\\Mmenu' => 'system/modules/dk_mmenu/classes/Mmenu.php', 'Dirch\\mmenu\\ModuleMmenu' => 'system/modules/dk_mmenu/modules/ModuleMmenu.php', 'Dirch\\mmenu\\ModuleCustomMmenu' => 'system/modules/dk_mmenu/modules/ModuleCustomMmenu.php', 'Dirch\\mmenu\\ModuleMmenuArticle' => 'system/modules/dk_mmenu/modules/ModuleMmenuArticle.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_mmenu' => 'system/modules/dk_mmenu/templates/modules', 'js_mmenu' => 'system/modules/dk_mmenu/templates/jquery'));