[Notice] Trying to get property of non-object

GET /news/google+adwords+vs.+outdoor+advertising+where+to+spend+your+advertising+budget.

Line 13 in /usr/home/commpartners/public_html/mysite/code/NewsHolder_Controller.php

Source

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'];

Trace

News » CP Media
C P Media Inspiring Everywhere

Head Office

01422 322255

Community Partners Limited
Head Office - Halifax

CP Media House
7 Harrison Road
Halifax
West Yorkshire
HX1 2AF

info@communitypartners.co.uk
finance@communitypartners.co.uk

Social:

outsmart

twitter

© Community Partners Limited

Registered in England & Wales. Company Registration: 07462517.

Registered Address: 7 Harrison Road, Halifax, West Yorkshire (tel: 01422 322255)

Site by: Ina4 Media Ltd Ina4