From 43e06e283889634b5fcaa63e117ee762fc705d61 Mon Sep 17 00:00:00 2001 From: dahnte <70238020+dahnte@users.noreply.github.com> Date: Thu, 23 Jan 2025 09:04:37 -0800 Subject: [PATCH] Fixed typo Pdfiew in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 31a650d..40d84a7 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Configure::write('CakePdf', [ ``` ```php -use CakePdf\View\Pdfiew; +use CakePdf\View\PdfView; class InvoicesController extends AppController { @@ -130,7 +130,7 @@ class InvoicesController extends AppController } /** - * Add Pdfiew::class to this $viewClasses property so that CakePHP automatically + * Add PdfView::class to this $viewClasses property so that CakePHP automatically * switches the view class for URLs ending with `.pdf` or with appropriate `Accept` header. * * @see https://book.cakephp.org/5/en/controllers.html#content-type-negotiation @@ -138,7 +138,7 @@ class InvoicesController extends AppController */ public function viewClasses(): array { - return $this->viewClasses[] = Pdfiew::class; + return $this->viewClasses[] = PdfView::class; } } ```