Skip to content

Default Filter(s) #502

@siripravi

Description

@siripravi

What steps will reproduce the problem?

I have defined these filters in my NgModel:
public function ngRestFilters() { return [ 'Deleted' => self::find()->where(['=', 'is_deleted', 1]), 'Active' => self::find()->where(['=', 'is_deleted', 0]), ]; }

What is the expected result?

I want to show 'Active' Items by default.
Is it possible to set some filter as default?

What do you get instead? (A Screenshot can help us a lot!)

LUYA Check ouput (run this script and post the result: luyacheck.php)

Additional infos

Q A
LUYA Version
PHP Version
Platform Apache/XAMPP/MAMPP/etc.
Operating system Windows/Linux Server/OSX/etc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions