1
00:00:00,420 --> 00:00:04,920
In this video we are going to implement view post details.

2
00:00:04,920 --> 00:00:07,230
When I click on Continue reading.

3
00:00:07,230 --> 00:00:15,240
I want to view the details about the post and as always, I'll provide the template for you.

4
00:00:15,660 --> 00:00:22,710
So I'm going to drag the template and put it inside the views and posts.

5
00:00:22,860 --> 00:00:25,200
And here is the template.

6
00:00:25,260 --> 00:00:30,900
I'm going to rename this one to dot edges.

7
00:00:31,830 --> 00:00:41,010
And then for the CSIS, it has its own CSIS, so I'm going to paste it inside public and CSIS, which

8
00:00:41,010 --> 00:00:42,900
is also this.

9
00:00:43,110 --> 00:00:47,190
So let's go ahead and then use the right CSIS.

10
00:00:47,400 --> 00:00:53,880
So let's look at the link, which is this I'm going to be forward slash CSIS.

11
00:00:54,690 --> 00:00:57,000
And we are good to go.

12
00:00:57,270 --> 00:01:00,780
Let me change this one to post details.

13
00:01:02,390 --> 00:01:08,300
Next step is I want to render this template when I click on continue reading.

14
00:01:08,570 --> 00:01:16,320
So what we are going to do is that we are going to render this template inside post Details controller.

15
00:01:16,340 --> 00:01:23,800
So if you go to Controllers Post and let's have a look at the post details, which is this one.

16
00:01:23,810 --> 00:01:34,700
So here we are going to render the details, post templates going to be as res dot render and inside

17
00:01:34,700 --> 00:01:38,090
the post we have the post details.

18
00:01:39,580 --> 00:01:44,890
Perfect, and I'll pass in the details of the post as that.

19
00:01:45,100 --> 00:01:51,760
And in case we have an error, I will also provide the error as that.

20
00:01:51,760 --> 00:01:55,750
So let's go ahead and make the request to hit this controller.

21
00:01:55,750 --> 00:01:58,300
So let's go to the homepage.

22
00:01:59,910 --> 00:02:04,260
And let's find the continue reading, which is this.

23
00:02:04,260 --> 00:02:12,360
So for this, we need to pass in the idea of the post, looking at the route based on the implementation,

24
00:02:12,570 --> 00:02:16,500
you can see that we are passing in the ID of the post.

25
00:02:16,500 --> 00:02:19,950
So let's go to the index.

26
00:02:21,300 --> 00:02:22,940
And continue reading.

27
00:02:22,950 --> 00:02:34,560
I'm going to be as API version one post and then forward slash the ID of the post and we can get it

28
00:02:34,560 --> 00:02:35,880
from the post here.

29
00:02:35,880 --> 00:02:41,070
So we're going to be as equal to post dot underscore ID.

30
00:02:42,530 --> 00:02:43,250
Perfect.

31
00:02:43,250 --> 00:02:45,410
So now let's try.

32
00:02:45,410 --> 00:02:46,370
Refresh it.

33
00:02:47,250 --> 00:02:55,710
Let me close these ones and let me click any of these ones and I have the details about the post.

34
00:02:55,860 --> 00:03:04,380
So for this you can see that we have the description about the post, the author, and then the comment

35
00:03:04,380 --> 00:03:09,570
form being included inside the Post details template.

36
00:03:09,660 --> 00:03:15,780
Now that we have the templates being rendered, then this video, let's go ahead and then fill up the

37
00:03:15,780 --> 00:03:16,980
actual data.

38
00:03:16,990 --> 00:03:20,290
And for this one to guys, you can give it a shot.

39
00:03:20,310 --> 00:03:20,820
All right.

40
00:03:20,820 --> 00:03:22,320
Catch you up in the next video.

