1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-29 16:00:15 +02:00

feat(core): move all Flextype helpers into Flextype namespace

This commit is contained in:
Awilum
2022-07-05 17:23:28 +03:00
parent 572e35e835
commit c9efafa5a4
183 changed files with 450 additions and 105 deletions

View File

@@ -1,6 +1,6 @@
title: Blog
macros:
php: |
$entry = entries()->registry()->get('methods.fetch');
$entry['result']['posts'] = entries()->fetch('blog', ['collection' => true, 'filter' => ['sort_by' => ['key' => 'date', 'direction' => 'ASC']]])->toArray();
entries()->registry()->set('methods.fetch', $entry);
$entry = \Flextype\entries()->registry()->get('methods.fetch');
$entry['result']['posts'] = \Flextype\entries()->fetch('blog', ['collection' => true, 'filter' => ['sort_by' => ['key' => 'date', 'direction' => 'ASC']]])->toArray();
\Flextype\entries()->registry()->set('methods.fetch', $entry);