Skip to content

Commit

Permalink
Fixed template example
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Oct 10, 2022
1 parent 85bae71 commit e4b64cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/services/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ class Tokens extends Component
* ]]);
*
* // Route to a template
* Craft::$app->tokens->createToken(['template' => 'template/path']);
* Craft::$app->tokens->createToken([
* 'templates/render',
* [
* 'template' => 'template/path',
* ]
* ]);
* ```
*
* @param array|string $route Where matching requests should be routed to.
Expand Down

0 comments on commit e4b64cd

Please sign in to comment.