Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo Pdfiew in README.md #330

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Configure::write('CakePdf', [
```

```php
use CakePdf\View\Pdfiew;
use CakePdf\View\PdfView;

class InvoicesController extends AppController
{
Expand All @@ -130,15 +130,15 @@ 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
* @var array<string>
*/
public function viewClasses(): array
{
return $this->viewClasses[] = Pdfiew::class;
return $this->viewClasses[] = PdfView::class;
}
}
```
Expand Down