我的Wordpress尚未激活模板的“模型页面”。我的插件已禁用,但这不是问题。
答案 0 :(得分:0)
好吧,我的问题只是模板名称的注释中有一个空格。
我的问题:模板名称:TplName
# Very untested; please treat this is syntactically-valid pseudocode...
WickedPdf.new.pdf_from_string(
ApplicationController.render(
template: 'admin/invoices/show_as_attachment.pdf.haml',
assigns: {
pdf: pdf_name,
print_media_type: true,
orientation: 'Portrait',
page_size: 'A4',
},
locals: { invoice: invoice, copy_invoice: nil },
)
)
我的解决方案:模板名称:TplName
<?php
/**
* Template Name : Book
*/
?>