Hi,
I’ve set up my snippet call within my chunk to look as follows:
[!tax? ¶m1 = `[+price_net+]`]
And while that does get through to my snippet, I then can’t work out how to call the value that I passed it.
I’ve tried variations on the following:
echo ¶m1;
or
$test = ¶m1;
echo $test;
But the only thing it prints out is, ¶m1 - so I’m assuming that I’m doing it wrong!
Any help would be appreciated!
Thank you
Hollie
This might seem like a silly question, but why is it better to leave out spaces in a snippet call?
Thanks
Hollie
-
☆ A M B ☆
- 24,524 Posts
Don’t know why not; the parameter name and its value are put through the PHP trim() function after they are broken up into an array using the PHP explode() function.