function getRead(Request $request, $id = null) { $row = Blog::getRowBlog($id); if ($row) { $this->data['row'] = $row; $this->data['id'] = $row->blogID; $this->data['alias'] = $row->slug; $this->data['blogcategories'] = Blog::summaryCategory(); $this->data['clouds'] = Blog::clouds(); $this->data['recent'] = Blog::recentPosts(); $this->data['comments'] = Blog::getComments($row->blogID); $this->data['access'] = $this->access; $this->data['pageMetakey'] = CNF_METAKEY; $this->data['pageMetadesc'] = CNF_METADESC; $this->data['pageTitle'] = $row->title; $this->data['pages'] = 'blog.view'; $page = 'layouts.' . CNF_THEME . '.index'; return view($page, $this->data); } else { return redirect('blog')->with('message', \SiteHelpers::alert('error', ' Article not found !')); } }