diff --git a/docs/en/views.md b/docs/en/views.md index a0e49783f2..7b82ce69a2 100644 --- a/docs/en/views.md +++ b/docs/en/views.md @@ -756,6 +756,15 @@ use Cake\View\View; class PdfView extends View { + protected string $layoutPath = 'pdf'; + + protected string $subDir = 'pdf'; + + public static function contentType(): string + { + return 'application/pdf'; + } + public function render(?string $view = null, ?string $layout = null): string { // Custom logic here.