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