Answer the question
In order to leave comments, you need to log in
Render twig template in October CMS console command?
There is a task to schedule a console command that generates html according to a given template.
There are no questions about creating a console script, artisan make:console ...
however, what is the best way to place the template in the CMS directory structure and how to trigger its rendering? Is it better to create a controller for this and call it from a script? The command is registered in the plugin.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question