number test

This commit is contained in:
CHIEFSOFT\ameye
2025-06-22 11:02:25 -04:00
parent d45c145e95
commit 3ceecdedd3
+9 -2
View File
@@ -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()