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:
@@ -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);
|
Reference in New Issue
Block a user