Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add form name to search model #551

Closed
evil1 opened this issue Dec 25, 2024 · 0 comments
Closed

Add form name to search model #551

evil1 opened this issue Dec 25, 2024 · 0 comments

Comments

@evil1
Copy link
Contributor

evil1 commented Dec 25, 2024

When generate CRUD with gii the default search model template generates pretty decent code, however it would be nice to be able to pass the $formName parameter into search method. This is great, when using SearchModel together with API, and attribute received in the request are not in SearchModelClass[attibuteName] format.

Q A
Yii version 2.0.51
PHP version 8.3.11
Database version pgsql
Operating system macOS Sequoia
evil1 added a commit to evil1/yii2-gii that referenced this issue Dec 25, 2024
evil1 added a commit to evil1/yii2-gii that referenced this issue Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant