Part 7 - Showing Our Posts
Getting Started
Creating The Templates
$ craft view posts
$ craft view singleCreating The Controller
$ craft controller PostShow Method
from app.Post import Post
...
def show(self):
posts = Post.all()
return view('posts', {'posts': posts})Posts Route
Posts View
Showing The Author
Single Post Route
Single Method
Single Post View
Last updated