Roots Discourse

Controller Template id

sage9
#1

Greetings and thanks in advance.

I have a template for id page-74.blade.php. How can I build a controller for that type of template?

Thanks for the help

0 Likes

#2

Hey @helgi,

Take a look at the controller docs here: https://github.com/soberwp/controller/

The fundamental way of doing it is to find the most appropriate class on the body element for that template, and then name the controller after that class.

0 Likes