Line 13 in /usr/home/commpartners/public_html/mysite/code/NewsHolder_Controller.php
4 private static $url_handlers = [ 5 '$ID' => 'index', 6 ]; 7 8 public function index(SS_HTTPRequest $request) { 9 if ($request->param('ID')) { 10 $article = $this->getArticleBySlug(urlencode($request->param('ID'))); 11 12 return $this->customise(new ArrayData(array( 13 'Title' => $article->Title, 14 'Article' => $article, 15 )))->renderWith(array('NewsArticle', 'Page')); 16 } 17 else { 18 if (isset($_GET['type']) && in_array(strtolower($_GET['type']), ['researchinsight', 'news'])) { 19 $showType = $_GET['type'] == 'researchinsight' ? 'Research & Insight' : $_GET['type'];