I'm trying to set a stash variable in a custom module I'm writing with the following code:
$params = array( 'name' => 'st_test_variable', 'scope' => 'user', 'type' => 'snippet' ); $value = "Test test"; Stash::set($params, $value);
However when I try and retrieve this in a template I get nothing. The code I'm using is as follows:
Should this be possible to do?
Bit of additional info: I'm using Stash 2.5.7 with EE 2.5.2 (not able to upgrade right now!).