[TYPO3-english] New Xclassing

Jigal van Hemert jigal.van.hemert at typo3.org
Sun Mar 10 08:38:40 CET 2013

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
= t3lib_extMgm::extPath('ext_key') . 'Classes/class.ux_db_layout.php';
// Namespace XCLASS
= array('className' => 'ux_SC_db_layout');

// XCLASS for TemplaVoilà Page module
= t3lib_extMgm::extPath('ext_key') . 
//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

More information about the TYPO3-english mailing list