Source
203 }
204
205 function getRecentArticlePost()
206 {
207 $projectURL = $this->request->param("ID");
208 //Debug::show($categoryURL);die();
209 $getBlog = DataObject::get_one('ArticleData', "URLSegment='".$projectURL."'");
210 //$getCategoryPageID = $this->PageCategory()->ID;
211 $getCategoryPageID = $this->ID;
212 $result = ArticleData::get()->where("PageCategoryID ='".$getCategoryPageID."' AND ID <>'".$getBlog->ID."'")->sort('Created DESC')->limit(3);
213 return $result;
214 }
215
216 public function countAllBlog(){
217 $tamp = BlogData::get()->count();
218 return $tamp;
Trace
- ArticlePage_Controller->getRecentArticlePost()
ViewableData.php:361
- ViewableData->obj(getRecentArticlePost,,1,,)
ViewableData.php:639
- ViewableData_Customised->obj(getRecentArticlePost,,1,,)
SSViewer.php:91
- SSViewer_Scope->getObj(getRecentArticlePost,,1,,)
SSViewer.php:513
- SSViewer_DataPresenter->getObj(getRecentArticlePost,,1,,)
SSViewer.php:111
- SSViewer_Scope->obj(getRecentArticlePost,,1)
.cache.themes.duniaburung.templates.Layout.ArticleDetailPage.ss:77
- include(/home/jasa5500/public_html/dunia-burung.jasamobileapp.com/silverstripe-cache/jasa5500/.cache.themes.duniaburung.templates.Layout.ArticleDetailPage.ss)
SSViewer.php:1033
- SSViewer->includeGeneratedTemplate(/home/jasa5500/public_html/dunia-burung.jasamobileapp.com/silverstripe-cache/jasa5500/.cache.themes.duniaburung.templates.Layout.ArticleDetailPage.ss,ViewableData_Customised,,Array,)
SSViewer.php:1100
- SSViewer->process(ViewableData_Customised,)
SSViewer.php:1096
- SSViewer->process(ViewableData_Customised,)
ViewableData.php:334
- ViewableData->renderWith(Array)
ArticlePage.php:157
- ArticlePage_Controller->view(SS_HTTPRequest)
RequestHandler.php:288
- RequestHandler->handleAction(SS_HTTPRequest,view)
Controller.php:194
- Controller->handleAction(SS_HTTPRequest,view)
RequestHandler.php:200
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
- Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:198
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:78
- ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:370
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:153
- Director::direct(/dna-page/view/video-cara-pengadaan-sample-dna,DataModel)
main.php:184