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

Building an static URL Segment


Go to End


1688 Views

Avatar
bezarre

Community Member, 13 Posts

21 August 2010 at 8:43am

Hello,

I build an form which result/action (FormAction) should be an static URL (setFormAction('TargetForm')).
But what must I write in Director::addRules that I get only the result with the round about of the page.ss?

I tried Director::addRules(100,array ('TargetForm'=>'Page')); but then I get the error, that the method 'setsession' doesn't exisits.

Can someone help me?

Bez