[TYPO3-mvc] PID - able to save but not read

Mark Kuiphuis typo3 at markyourweb.com
Tue Jul 3 02:24:10 CEST 2012


Hi Kast,

To use variables from Typoscript or from Flexforms, it needs to be 
defined in plugin.tx_myextension.settings.<put variable here>

Then you can retrieve the variable in the Controller by using this:

$var = (int)$this->settings['<put variable here>'];

Cheers, Mark

On 2/07/12 3:09 PM, ktt wrote:
> Hello,
>
> To be able to write to pid I defined it so:
>
>
> plugin.tx_myextension.persistence.classes.Tx_Myextension_Domain_Model_Foomodel.newRecordStoragePid = 2
>
> config.tx_extbase.persistence.classes.Tx_Myextension_Domain_Model_Foomodel.newRecordStoragePid = 2
> plugin.tx_myextension.persistence.classes.Tx_Myextension_Domain_Model_Foomodel.storagePid = 2,13,11
> config.tx_extbase.persistence.classes.Tx_Myextension_Domain_Model_Foomodel.storagePid = 2,13,11
> plugin.tx_myextension.persistence.classes.Tx_Myextension_Domain_Model_Foomodel.defaultStoragePid = 2
> config.tx_extbase.persistence.classes.Tx_Myextension_Domain_Model_Foomodel.defaultStoragePid = 2
>
> module.tx_myextension.persistence < plugin.tx_myextension.persistence
>
> Without defining pid for 'config.tx_extbase.persistence' it is not able to write to correct pid.
> With 'config.tx_extbase.persistence' defined extension in BE saves to correct pid, but not able to find ( findAll() ) objects.
>
> Are there some settings missing?
>
> Thank you in advance,
> Kast
>




More information about the TYPO3-project-typo3v4mvc mailing list