Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
600 views
in Technique[技术] by (71.8m points)

octobercms - No query results for model [RenatioDynamicPDFModelsTemplate]

I install DynamicPDF in my october cms application. I followed every steps of https://octobercms.com/plugin/renatio-dynamicpdf#registering-pdf-templates-and-layouts. And just create a sample file to test:

title = "pdf"
url = "/dashboard/pdf"
layout = "admin"
is_hidden = 0
role = 0
permission = 0
anonymous_only = 0
logged_only = 1
child_of = "dashboard"
hide_crumb = 0
remove_crumb_trail = 0
crumb_disabled = 0

[viewBag]
==
<?php
use RenatioDynamicPDFClassesPDF;

function onStart()
{
    return PDF::loadTemplate('renatio::invoice')->stream();
}
?>
==

<h1>Hello</h1>

But when I browse this page I am getting the following error:

No query results for model [RenatioDynamicPDFModelsTemplate].
C:xampphtdocscourierdemo.itscholarbd.comvendorlaravelframeworksrcIlluminateDatabaseEloquentBuilder.php line 479

I struggled to fix this issue for the whole day. there are many sample code I tested, nothing works. Any idea?

question from:https://stackoverflow.com/questions/65646199/no-query-results-for-model-renatio-dynamicpdf-models-template

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...