# setParameter no longer works?

**URL:** <https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695>\
**Category:** English forums\
**Tags:** dev-talk\
**Created:** [April 27, 2011, 10:23am UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695 "2011-04-27T10:23:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deddy](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@deddy](https://forum.oxid-esales.com/u/deddy)\
**Post date:** [April 27, 2011, 10:23am UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695/1 "2011-04-27T10:23:42Z")

</div>

Hi?

Could it be, that $myConfig-\>setParameter(“something”, $something) no longer works in the newest CE version? I’ve used it always in version PE 3.0. Now i have a new Project and i want to use the newest CE Version. How can i solve it? Or should i use the oxsession?

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/marco.steinhaeuser/32/1832_2.png) [@marco.steinhaeuser](https://forum.oxid-esales.com/u/marco.steinhaeuser)\
**Post date:** [April 28, 2011, 11:30pm UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695/2 "2011-04-28T23:30:59Z")

</div>

Hi deddy,

couldn’t find “myConfig” in [deprecated stuff.](http://wiki.oxidforge.org/Removed_deprecated_source) Either it shall work or has been ditched before 😉

Regards

---

<div class="post-metadata">

**Author:** ![deddy](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@deddy](https://forum.oxid-esales.com/u/deddy)\
**Post date:** [May 23, 2011, 10:34am UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695/3 "2011-05-23T10:34:40Z")

</div>

Servus Marco,

ich meinte eigentlich das setparameter. Ich kann das nirgends im Source finden wie das in der jetztigen version verwendet wird. In der älteren 3er PE version konnte man damit doch Variablen mit $myConfig-\>setParameter(“variable”, “meinwert”); setzen und mit $myConfig-\>getParameter(“variable”) dann wieder holen. Ich habs jetzt mit Sessions gelöst. Funktioniert auch aber das mit setparameter war schon praktisch.

Gruß Deddy

---

<div class="post-metadata">

**Author:** ![deddy](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@deddy](https://forum.oxid-esales.com/u/deddy)\
**Post date:** [June 1, 2011, 10:13am UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695/4 "2011-06-01T10:13:48Z")

</div>

Hi Marco,

ok 🙂 then in english. Once again.  
I could set a parameter in the PE 3.0 version in a view class with:  
function something() {  
global $myConfig;  
$myConfig-\>setParameter(“something”, $something); …  
and i could get again the parameter with $myConfig-\>getParameter(“something”);  
I couldn’t find in the newest ce version the setParameter.

Greetings to the Cold North

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [June 3, 2011, 12:06pm UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695/5 "2011-06-03T12:06:49Z")

</div>

I would avoid global. Look in oxconfig.php to see the available Methods and how they work:  
Config Params: getConfigParam and setConfigParam, setGlobalParameter and getGlobalParameter  
Request Params: getParameter, this is taken directly from Get and Post, thus no Set-Method.

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:38pm UTC](https://forum.oxid-esales.com/t/setparameter-no-longer-works/49695/6 "2026-07-13T19:38:27Z")

</div>


