1. <?php
  2. private static $allowed_actions = array (
  3. 'article'
  4. );
  5. public function article(SS_HTTPRequest $r) {
  6. $a = Article::get()->filter('URLSegment' => $r->param('ID'))->first();
  7. if(!$a) {
  8. return $this->httpError(404);
  9. }
  10. return Article_Controller::create($a);
  11. }