-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot call renderPageTemplate from a console request #3124
Comments
timkelty
changed the title
Cannot call renderPageTemplate from a console request
Cannot call renderTemplate from a console request
Jul 20, 2018
timkelty
changed the title
Cannot call renderTemplate from a console request
Cannot call renderPageTemplate from a console request
Jul 20, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I'm trying to call
Craft::$app->getView()::renderPageTemplate
orCraft::$app->getView()::renderTemplate
from within a console request and an exception gets thrown:Is this expected?
Craft::$app->getView()::renderTemplate
does seem to work, but this is a full html doc, sorenderPageTemplate
seemed right.Here's the stack trace:
Original post on SE: https://craftcms.stackexchange.com/questions/26910/how-can-i-render-a-page-template-from-a-queue-job-console-controller
The text was updated successfully, but these errors were encountered: