[Notice] Trying to get property of non-object (@line 14 in file /home/bayyenat/domains/bayyenat7.ir/public_html/2/protected/pages/blog/ShowContent.php).
/home/bayyenat/domains/bayyenat7.ir/public_html/2/protected/pages/blog/ShowContent.php (14)
0003: {
0004: public function onInit($param)
0005: {
0006: parent::onInit($param);
0007:
0008: $schoolName = SettingRecord::finder()->findByName("CopyRight");
0009: if($schoolName instanceof SettingRecord)
0010: $this->Title = $schoolName->value;
0011:
0012: $id = $this->Request["id"];
0013: $content = BlogContentRecord::finder()->find("id = ?",$id);
0014: if(!($content instanceof BlogContentRecord) && $content->status != 1)
0015: $this->Response->redirect($this->Service->constructUrl("blog.BlogsList"));
0016:
0017: $blog = $content->blog;
0018: $this->about->Text = $blog->about;
0019: $this->manager->Text = $blog->manager->FullName;
0020: $this->hit->Text = $blog->hit;
0021: $this->content->Text = count($blog->content);
0022: $this->commentC->Text = BlogCommentRecord::finder()->count("content_id in (select id from blog_content where blog_id = ?)",$blog->id);
0023: $this->header->Text = $blog->header_path;
0024:
0025: $this->authorPicPath->Text = (!(SettingRecord::finder()->findByName('imgPublishBlog') instanceof SettingRecord && SettingRecord::finder()->findByName('imgPublishBlog')->value==true))?SettingRecord::finder()->findByName('imgDefaultStd')->value:$content->author->profile_pic_path;
0026: $this->author->Text = $content->author->fullName;
#0 /home/bayyenat/domains/bayyenat7.ir/public_html/2/protected/pages/blog/ShowContent.php(14): PradoBase::phpErrorHandler(8, 'Trying to get p...', '/home/bayyenat/...', 14, Array)
#1 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/UI/TControl.php(1279): showContent->onInit(NULL)
#2 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#3 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#4 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/UI/TPage.php(214): TTemplateControl->initRecursive()
#5 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#6 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#7 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(showContent), Array)
#8 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/TApplication.php(1221): TPageService->run()
#9 /home/bayyenat/domains/bayyenat7.ir/public_html/2/framework/TApplication.php(410): TApplication->runService()
#10 /home/bayyenat/domains/bayyenat7.ir/public_html/2/index.php(25): TApplication->run()
#11 {main}