Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

perform GET or SESSION in ss


Go to End


2 Posts   640 Views

Avatar
markkkkkk

Community Member, 3 Posts

25 May 2015 at 4:08pm

Edited: 25/05/2015 5:43pm

I would like to perform in ss the
$_GET and $_SESSION of php.
A step by step answer or tutorial would help.
basically I wanna fetch a variable through the URL (i.e. index.php?id='foo') or through starting a SESSION. please help. thanks.

the main reason I'm doing this is because I wanna open a pop up window when the links are clicked.
basically in php <a href="index.php?id=$ID">$text</a>, any solutions for this?

Avatar
Pyromanik

Community Member, 419 Posts

26 May 2015 at 9:43am

From a controller: $this->request->getVar('ID');