[Notice] Trying to get property of non-object (@line 29 in file /home5/greenest/public_html/protected/pages/Content/Content.php).
/home5/greenest/public_html/protected/pages/Content/Content.php (29)
0018: parent::onInit($param);
0019: // post id is passed via the 'id' GET parameter
0020: $id = (int)$this->Request['id'];
0021:
0022: $this->Content_id = $id;
0023:
0024: // retrieves ContentRecord with author information filled in
0025: $this->_content = ContentRecord::finder()->findByPk($id);
0026:
0027: // loopt de taal synchroon?
0028:
0029: if ($this->_content->taal_id != $this->Taal) {
0030:
0031: $this->nieuwe_taal = $this->Taal;
0032: $this->switch_content();
0033:
0034: }
0035:
0036: if($this->_content===null) // if post id is invalid
0037: { throw new THttpException(500,'Unable to find the specified page.');
0038: // $this->Title = "The Greenest Carwash - " . $this->_content->naampagina;
0039: $this->Title = $this->_content->webpagina_titel;}
0040: else
0041: {$this->Title = $this->_content->webpagina_titel;
#0 /home5/greenest/public_html/protected/pages/Content/Content.php(29): PradoBase::phpErrorHandler(8, 'Trying to get p...', '/home5/greenest...', 29, Array)
#1 /home5/greenest/public_html/prado/framework/Web/UI/TControl.php(1270): Content->onInit(NULL)
#2 /home5/greenest/public_html/prado/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#3 /home5/greenest/public_html/prado/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#4 /home5/greenest/public_html/prado/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#5 /home5/greenest/public_html/prado/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#6 /home5/greenest/public_html/prado/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#7 /home5/greenest/public_html/prado/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(Content), Array)
#8 /home5/greenest/public_html/prado/framework/TApplication.php(1095): TPageService->run()
#9 /home5/greenest/public_html/prado/framework/TApplication.php(382): TApplication->runService()
#10 /home5/greenest/public_html/index.php(42): TApplication->run()
#11 {main}