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.
How should I construct Director:addRules(); like :
'/$Action/$ID/$OtherID/$Region/$Country/$City' => 'SearchPage_Controller',
So I can use (also with nested urls enabled):
When I add the above rules I get the error:
[User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
I realize this is an old post, but were you able to figure this out?
I have a similar set up, where I want to have domain.com/myPage/show/ID/otherID/itemID
it could go one or two more deeper, but I'm just trying to get the $ItemID part figured out.
I get the same error as you did, and I've tried:
'$Controller//$Action/$ID/$OtherID/$ItemID' => '*'
'/$Action/$ID/$OtherID/$ItemID' => 'MyPage_Controller'
Do any of the ideas at http://www.silverstripe.org/general-questions/show/16057 answer your question?