Message of the day:
Welcome to SilverStripe | Current stable: https://goo.gl/C4F1T9 | Feature requests: https://goo.gl/EcQ34L | Community Forum: https://forum.silverstripe.org | StripeCon EU 2019! https://stripecon.eu
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
If a "variable" isn't incoming via a URL, then it has to come from $_GET|POST|COOKIE|SESSION
Well, then it's not an action any more.
is there any way to specify an action without it being in the URL though?
I almost always avoid these controller statics, and use YML-based routing ala
- 'health/check//$Action/$ID/$OtherID': My\Namespace\Control\HealthCheckController
I must doing something ridiculous then, because I can't get any other action than index, to load
I think it needs to be
- '$Action/$param!' => 'action1'
mm I'm using
PageController that might play out
I always end up on
hi, new to routing in SS, I have two actions, I would like one to receive people loading
/ and another one to receive
/$param I have used the following but it's not working:
- private static $url_handlers = [
- '/$param!' => 'action1'
Hoping that people loading
/ will land in
haha great stuff and info guys 🙂