http://maetl.net/silverstripe-url-handling
should update to explain the // as well.
--
Mark Rickerby
http://doc.silverstripe.org/doku.php?id=controller
There are two other parts I neglected and would appreciate any
clarifications on:
1. File Extensions
You can add a extension to intercept requests that would appear to be
to a file
'order/condiment/ketchup.jpg'
Can you add variables in this or would you use it for something like
applying controller code to the request? I could see this being
useful for intercepting static content requests and ferrying them on
to a CDN maybe?
2. Specifying Request Type
You can target a request type by prefacing the pattern with it like:
'GET order/$ID'
'PUT order/newfromfile'
What would be a practical case for this? Using PUT to accept a file
REST like and deal with it in your Controller code using fopen("php://
input", "r")?
Thanks for everyone's patience, this exercise has opened up a whole
lot of new functionality to my brain with SS. I'm excited to clarify
it at least on the wiki for others to pick up on.
> 1. File Extensions
> You can add a extension to intercept requests that would appear to be
> to a file
> 'order/condiment/ketchup.jpg'
> Can you add variables in this or would you use it for something like
> applying controller code to the request? I could see this being
> useful for intercepting static content requests and ferrying them on
> to a CDN maybe?
The default .htacces doesn't allow you to do this at the moment,
we're considering removing this restriction (at the expense of
more server load for "non-PHP 404" requests: http://open.silverstripe.org/ticket/2958
Andrew can your or anyone else speak to the first part on how to
structure a cascading controllers with shift points, per below:
> would you be able
> to provide an example of how a structure of such controllers would
> look and how the traversal stops and hands off to the next? Is that
> exclusive to nested urls in 2.4 (it doesn't appear so in the commit log)?
Also anyone have thoughts on #2:
> 2. Specifying Request Type
> You can target a request type by prefacing the pattern with it like:
> 'GET order/$ID'
> 'PUT order/newfromfile'
> What would be a practical case for this? Using PUT to accept a file
> REST like and deal with it in your Controller code using fopen("php://
> input", "r")?
Thanks
-Dale
--
You received this message because you are subscribed to the Google Groups "SilverStripe Development" group.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.