Very confusing issue. Spent hours on digging but no joy. Allow me to explain:
I've followed the documentation on http://doc.silverstripe.org/framework/en/topics/controller but doesn't work.
Bumps me to this page (screenshot):
I have put this in _config.php:
Director::addRules(50, array(
'everything/$Action/$ID'=>'EverythingController'
));
No Joy.
I followed documentation at (http://doc.silverstripe.org/framework/en/topics/controller) - no joy. Same issue (See screenshot above).
How do I unable controller?
Source code for EverythingController.php:
<?php
class EverythingController extends Controller {
function bio(){
$id = $this->urlParams['ID'];
$bio = DataObject::get_by_id("Bio",$id);
return $this->renderWith("RoleSelect",array("Bio"=>$bio));
}
}
?>
Everything I have done should work when I url to: link.com/everything/bio/2 - BUT IT DOESN'T
It always worked before. I think the issue came up when I started using the framework from the git repo at https://github.com/silverstripe/silverstripe-framework
Anyone with same issue?
Any solution / pointers / any guesses of what could be wrong?
Thank you.