We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcdd54a commit a34c4bdCopy full SHA for a34c4bd
1 file changed
docs/en/views.md
@@ -756,6 +756,15 @@ use Cake\View\View;
756
757
class PdfView extends View
758
{
759
+ protected string $layoutPath = 'pdf';
760
+
761
+ protected string $subDir = 'pdf';
762
763
+ public static function contentType(): string
764
+ {
765
+ return 'application/pdf';
766
+ }
767
768
public function render(?string $view = null, ?string $layout = null): string
769
770
// Custom logic here.
0 commit comments