Timeline for Getlistquery Joomla conditional values
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 19, 2022 at 23:10 | comment | added | Elboyler | So you did almost the same the getlistquery does. The standard !J getListQuery() goes like: $db = ...; $query = $db->getQuery(true); $query->select('*')->from(...)->where(...); AND then return $query; In controller you call $results = $model->getListQuery()->loadAssoc(); Well, you simply made yourself unable to use your model anywhere, because you've already returned database data as assoc, so no one is able to retrieve your model and configure its return value. I encourage you to learn things from articles/article models to see how models in 'kind of' MVC work. | |
May 28, 2021 at 17:06 | vote | accept | Kuubs | ||
May 28, 2021 at 17:06 | |||||
May 28, 2021 at 17:04 | history | answered | Kuubs | CC BY-SA 4.0 |