Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get typoscript values in extbase framework

I am new to extbase(MVC) Framework , How can we get typoscript values in our extension :

Eg : suppose if i have some typoscript values like:

plugin.tx_some-extname.somevlaueX = XXXX
plugin.tx_some-extname.somevlaueY = yyyy
plugin.tx_some-extname.somevlaueZ = zzzz

how will i get these values in a specific action of our controller .I hope this makes sense ??

like image 486
Siva Avatar asked Jan 07 '13 05:01

Siva


1 Answers

Declare values in the settings scope (in the setup field) ie:

plugin.tx_some-extname.settings {
    myXsetting = XXXX
}

So the all settings will be accesible in your plugin in $this->settings (as array) :

$valX = $this->settings['myXsetting'];
like image 139
biesior Avatar answered Sep 21 '22 02:09

biesior