diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 2946f7e..998a004 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -39,6 +39,7 @@ $routes->get('/terms', 'Home::terms'); $routes->get('/privacy', 'Home::privacy'); $routes->get('/contact', 'Home::contact'); $routes->get('/blog-details', 'Home::blogdetails'); +$routes->get('/blog-details/(:alphanum)', 'Home::blogdetails/$'); $routes->get('/old', 'Home::indexold'); diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 4f24bd7..6e4369d 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -19,6 +19,8 @@ class Home extends BaseController $siteData['blog_media_url'] = $out['payload']['image_url']; // $data = array(); // $data["blog_post"] =$this->getBlogItems(); // $blog_post; + //var_dump( $siteData); +//exit(); return view('web/blog',$siteData ); } diff --git a/app/Views/web/blog-details.php b/app/Views/web/blog-details.php index 949ee56..5ac72bd 100644 --- a/app/Views/web/blog-details.php +++ b/app/Views/web/blog-details.php @@ -37,7 +37,7 @@
- Image + Image
diff --git a/app/Views/web/blog.php b/app/Views/web/blog.php index a98c42b..33e1fb7 100644 --- a/app/Views/web/blog.php +++ b/app/Views/web/blog.php @@ -34,7 +34,7 @@
@@ -46,17 +46,17 @@

- +

Aliquam eros justo, posuere loborti viverra lao ullamcorper posuere viverra .Aliquam eros justo, posuere lobortis non, viverra laoreet augue mattis start fermentum ullamcor viverra