[TYPO3-german] Re: extbase add new eintrag ohne formular

arianesardinas asardinas at gmx.de
Fri Feb 7 15:52:35 CET 2014


hm...

ich habe versucht das objekt zu  instanziieren und zwar so:

$repository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\JobsDfu\Domain\Model\Occupationcategory');

aber ich bekomme ein error: 
Fatal error: Class '\\TYPO3\JobsDfu\Domain\Model\Occupationcategory' not found 

meine ganze action sieht so aus jetzt:

public function newAction(\TYPO3\JobsDfu\Domain\Model\Occupationcategory $newOccupationcategory = NULL) {

$repository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\JobsDfu\Domain\Model\Occupationcategory');

$repository ->:setProperty($newOccupationcategory, 'name', 'hallo');

 }
es geht auch nicht, jemand eine idee?


More information about the TYPO3-german mailing list