Initialer Commit
This commit is contained in:
19
config/autoload.ini
Normal file
19
config/autoload.ini
Normal file
@ -0,0 +1,19 @@
|
||||
;;
|
||||
; List modules which are required to be loaded beforehand
|
||||
;;
|
||||
requires[] = "core"
|
||||
|
||||
;;
|
||||
; Configure what you want the autoload creator to register
|
||||
;;
|
||||
register_namespaces = true
|
||||
register_classes = true
|
||||
register_templates = true
|
||||
|
||||
;;
|
||||
; Override the default configuration for certain sub directories
|
||||
;;
|
||||
[vendor/*]
|
||||
register_namespaces = false
|
||||
register_classes = false
|
||||
register_templates = false
|
40
config/autoload.php
Normal file
40
config/autoload.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Contao Open Source CMS
|
||||
*
|
||||
* Copyright (c) 2005-2015 Leo Feyer
|
||||
*
|
||||
* @license LGPL-3.0+
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Register the namespaces
|
||||
*/
|
||||
ClassLoader::addNamespaces(array
|
||||
(
|
||||
'cgoIT',
|
||||
));
|
||||
|
||||
|
||||
/**
|
||||
* Register the classes
|
||||
*/
|
||||
ClassLoader::addClasses(array
|
||||
(
|
||||
// Classes
|
||||
'cgoIT\rateit\RateItNews4ward' => 'system/modules/news4ward_rateit/classes/RateItNews4ward.php',
|
||||
));
|
||||
|
||||
|
||||
/**
|
||||
* Register the templates
|
||||
*/
|
||||
TemplateLoader::addFiles(array
|
||||
(
|
||||
'mod_news4ward_reader_rateit' => 'system/modules/news4ward_rateit/templates',
|
||||
'mod_news4ward_reader_rateit_microdata' => 'system/modules/news4ward_rateit/templates',
|
||||
'news4ward_list_item_rateit' => 'system/modules/news4ward_rateit/templates',
|
||||
'news4ward_list_item_rateit_microdata' => 'system/modules/news4ward_rateit/templates',
|
||||
));
|
3
config/config.php
Normal file
3
config/config.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$GLOBALS['TL_HOOKS']['News4wardParseArticle'][] = array('rateit\\RateItNews4ward', 'parseArticle');
|
Reference in New Issue
Block a user