File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Configure::write('CakePdf', [
110110```
111111
112112``` php
113- use CakePdf\View\Pdfiew ;
113+ use CakePdf\View\PdfView ;
114114
115115class InvoicesController extends AppController
116116{
@@ -130,15 +130,15 @@ class InvoicesController extends AppController
130130 }
131131
132132 /**
133- * Add Pdfiew ::class to this $viewClasses property so that CakePHP automatically
133+ * Add PdfView ::class to this $viewClasses property so that CakePHP automatically
134134 * switches the view class for URLs ending with `.pdf` or with appropriate `Accept` header.
135135 *
136136 * @see https://book.cakephp.org/5/en/controllers.html#content-type-negotiation
137137 * @var array<string >
138138 */
139139 public function viewClasses(): array
140140 {
141- return $this->viewClasses[] = Pdfiew ::class;
141+ return $this->viewClasses[] = PdfView ::class;
142142 }
143143}
144144```
You can’t perform that action at this time.
0 commit comments