[TYPO3-seminars] How to xclass seminars

Felix Nagel lists at felixnagel.com
Tue Apr 5 18:41:50 CEST 2011


Hey,

Im trying to xclass function populateListCountries in 
pi1\class.tx_seminars_pi1_eventEditor.php but without success.

user_extension localconf.php:
$TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/seminars/pi1/class.tx_seminars_pi1_eventEditor.php"] 
= 
t3lib_extMgm::extPath($_EXTKEY).'lib/seminars/class.ux_tx_seminars_pi1_eventEditor.php'; 


My modified class (file class.ux_tx_seminars_pi1_eventEditor.php)
class ux_tx_seminars_pi1_eventEditor extends tx_seminars_pi1_eventEditor {
	public static function populateListCountries() {
		$result = array();
			
		xdebug("test new");
		// do stuff

		return $result;
	}
}

Nothing happens. Does the oelib autoloader respect xclasses?

I tried to change the the form TS, too:
newPlace_country = renderlet:LISTBOX
newPlace_country {
	name = newPlace_country
	label = LLL:EXT:seminars/locallang_db.xml:tx_seminars_sites.country
	wrap = <div class="formidable-rdrstd-rdtwrap">|</div>
	data {
		items {
			10.caption = &nbsp;
			10.value = 0
		}
		userobj.php (
			require_once(t3lib_extMgm::extPath('oelib') . 
'class.tx_oelib_Autoloader.php');
			return ux_tx_seminars_pi1_eventEditor::populateListCountries();
		)
	}
}
  but all I got is another error message:
Fatal error:  Class 'ux_tx_seminars_pi1_eventEditor' not found in 
/html/typo3/typo3conf/ext/ameos_formidable/api/class.tx_ameosformidable.php(5013) 
: eval()'d code on line 2


I will need to implement some more changes within seminars and I'll get 
into trouble if there's no chance to xclass.

Any hints?

-- 
Grüße
Felix Nagel


More information about the TYPO3-project-seminars mailing list