On 9-3-2013 16:51, Tomasz Krawczyk wrote:
I don't know what I'm doing wrong. Neither namespaced nor not namespaced
my xclass do not work. Is there any extension using new xclassing method
I could use as example?
Two examples (extension key removed):
// XCLASS for Page module
$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/cms/layout/db_layout.php']
= t3lib_extMgm::extPath('ext_key') . 'Classes/class.ux_db_layout.php';
// Namespace XCLASS
$TYPO3_CONF_VARS['SYS']['Objects']['TYPO3\\CMS\\Backend\\Controller\\PageLayoutController']
= array('className' => 'ux_SC_db_layout');
// XCLASS for TemplaVoilà Page module
$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/templavoila/mod1/index.php']
= t3lib_extMgm::extPath('ext_key') .
'Classes/class.ux_tx_templavoila_module1.php';
//Namespace XCLASS
$TYPO3_CONF_VARS['SYS']['Objects']['tx_templavoila_module1'] =
array('className' => 'ux_tx_templavoila_module1');
Note that the new namespaced XCLASS method relies on the classes being
autoloaded. Make sure the classes are included in the ext_autoload.php
if they can't be autoloaded by naming conventions.
--
Jigal van Hemert
TYPO3 CMS Core Team member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english