W dniu 2013-03-10 08:38, Jigal van Hemert pisze:
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.
Could you have a look at my files? I still can't make it working.
ext_autoload.php
<?php
$ep = t3lib_extMgm::extPath('imagickimg');
return array(
'ux_tx_ThumbnailView' => $ep .
'Classes/Xclass/class.ux_tx_ThumbnailView.php',
'ux_tx_GraphicalFunctions' => $ep .
'Classes/Xclass/class.ux_tx_GraphicalFunctions.php',
);
?>
ext_localconf.php
<?php
if (!defined ("TYPO3_MODE")) die ("Access denied.");
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\View\\ThumbnailView']
= array('className' => 'ux_tx_ThumbnailView');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Imaging\\GraphicalFunctions']
= array('className' => 'ux_tx_GraphicalFunctions');
...
?>
class.ux_tx_ThumbnailView.php
<?php
namespace ImagickimgTeam\Imagickimg\Xclass;
//class ThumbnailView extends \TYPO3\CMS\Backend\View\ThumbnailView {
class ux_tx_ThumbnailView extends \TYPO3\CMS\Backend\View\ThumbnailView {
...
?>
I see no devLog messages, no sysLog messages no var_dumps. Maybe someone
finds my bug.
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english