Skip to content

Commit

Permalink
$template->setParameters does not exists in Nette 3.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 authored Aug 21, 2021
1 parent c0bde1a commit 51f24d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ and set template parameters (for example in the **beforeRender** method).
````PHP
public function beforeRender()
{
$this->template->setParameters([
'webloaderFilesCollectionRender' => $this->webLoader->getFilesCollectionRender()
]);
$this->template->webloaderFilesCollectionRender = $this->webLoader->getFilesCollectionRender();
}
````

Expand Down

0 comments on commit 51f24d6

Please sign in to comment.