Skip to content

Commit

Permalink
Update php quotes in collections guide.txt
Browse files Browse the repository at this point in the history
Use single quotes in PHP code consistently
  • Loading branch information
flokosiol authored and texnixe committed Jan 20, 2025
1 parent 2057edc commit 1a224b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/docs/1_guide/6_templates/6_collections/guide.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ return function ($site) {
Collections can be used in templates and snippets like this:

```php
$kirby->collection("articles");
$kirby->collection("admins");
$kirby->collection("project-covers");
$kirby->collection('articles');
$kirby->collection('admins');
$kirby->collection('project-covers');
```

You can loop through the collections like through any collection like this:
Expand Down Expand Up @@ -94,7 +94,7 @@ return function ($site) {
```

```php
$kirby->collection("articles/latest");
$kirby->collection('articles/latest');
```

## Best practices
Expand Down

0 comments on commit 1a224b2

Please sign in to comment.