5319 Posts in 1593 Topics by 1165 members
|Go to End|
12 May 2010 at 7:00am
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
17 August 2011 at 5:03pm
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'
25 October 2011 at 10:40am Last edited: 25 October 2011 10:42am
Do any of the ideas at http://www.silverstripe.org/general-questions/show/16057 answer your question?
|Go to Top|