Hi,
I play something with the url_handlers and I have a problem…
I get the following error when I test my URLs:
[User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
GET /explore/record-name/comments/add/12/?flush=1
Line 454 in /sapphire/core/control/Controller.php
/explore/record-name/ -> class Record extends Page
in Record_Controller:
public static $url_handlers = array(
'' => 'index' // works
,'comments' => 'showComments' // works
,'POST comments/$Action' => 'commentAction'
,'comments/$Action/$ID' => 'editComment'
);
I try to access the following urls:
/explore/record-name/comments => with index
/explore/record-name/comments/add => commentAction
/explore/record-name/comments/edit/$ID => editComment
/explore/record-name/comments/delete/$ID => editComment
I hope you can help me…
Jörn
I have almost forgotten. I use silverstripe 2.4 beta