number test
This commit is contained in:
@@ -46,8 +46,15 @@ class Home extends BaseController
|
||||
|
||||
public function blogdetails()
|
||||
{
|
||||
$currentPost = $this->getBlogOneItem(13);
|
||||
return view('web/blog-details',$currentPost);
|
||||
$segment = $this->request->uri->getSegment(2);
|
||||
|
||||
if ( is_numeric( $segment )) {
|
||||
$currentPost = $this->getBlogOneItem($segment);
|
||||
return view('web/blog-details', $currentPost);
|
||||
} else
|
||||
{
|
||||
return $this->blog();
|
||||
}
|
||||
}
|
||||
|
||||
public function security()
|
||||
|
||||
Reference in New Issue
Block a user