[TYPO3-mvc] writing backend module

Alexander Dick typo3 at dick.at
Tue Feb 7 18:31:34 CET 2012


Am 07.02.2012 18:04, schrieb Johannes C. Schulz - EnzephaloN IT-Solutions:
> Hello Alexander
>
> Yes, of curse:
>
> plugin.tx_psoaaccredit{
> 	settings{
> [...]
> 	}
> 	persistence{
> 		storagePid =
> {$plugin.tx_psoaaccredit.persistence.storagePid}
> [...]
>
> module.tx_psoaaccredit{
> 	settings<  plugin.tx_psoaaccredit.settings
> 	persistence<  plugin.tx_psoaaccredit.persistence
> }

Looks OK to me, do you inject or instantiate the accreditationRepository 
in your BackendController?


	/**
	 * @var Tx_Xxx_Domain_Repository_AccreditationRepository
	 */
	protected $accreditationRepository;

	/**
	 * @param Tx_Xxx_Domain_Repository_AccreditationRepository 
$accreditationRepository
	 * @return void
	 */
	public function 
injectAccreditationRepository(Tx_Xxx_Domain_Repository_AccreditationRepository 
  $accreditationRepository) {
		$this->accreditationRepository = $accreditationRepository;
	}

make sure to clear the cache after that change!

Kind regards
Alex

>
> Best regards
> Johannes
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
> [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
> Alexander Dick
> Gesendet: Dienstag, 7. Februar 2012 17:57
> An: typo3-project-typo3v4mvc at lists.typo3.org
> Betreff: Re: [TYPO3-mvc] writing backend module
>
> Hi,
>
>> But “findAll()” doesn’t find anything!
>
> Have you set your storagePid ?
>
> TS Config:
>
> module.tx_xxx.persistence.storagePid = 2
>
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
>



More information about the TYPO3-project-typo3v4mvc mailing list