"Undefined array key" Error with Blade Directive package for Statamic

The example from the Blade Directives package returns the error "Undefined array key" when trying to display all posts from a collection.

Here is how i have used the example in my blade template.

@collection('articles', ['orderBy' => 'desc'] @if($entry == 0)

No Posts Found

@else
    {{ $entry['title'] }}
@endif

@endcollection

I have tried the if statement from the example but that also returns the error.

@if($entry['no_results'])

No Posts Found

@else

Any help on why the error occurs or what is causing it would be great.

>>>>>>> Unanswered <<<<<<<
2 Replies
2 Followers