Timeline for Filter Collection using Mysql4 Model
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 22, 2014 at 8:26 | vote | accept | Jordan | ||
Aug 22, 2014 at 8:26 | comment | added | Jordan |
Marius, you are amazing. I missed and was unaware of the code $this->getCollection()->load(); , which was causing the issue. Its perfect. But question is do we need to apply filter in block class every time or advisable to do it in template files too ?
|
|
Aug 22, 2014 at 8:15 | comment | added | Jordan | Yes Amit, its already there. | |
Aug 22, 2014 at 7:36 | comment | added | Amit Bera♦ | Jorgon:are you created Model/Modulename.php? | |
Aug 22, 2014 at 7:21 | comment | added | Marius♦ | @Jordan. See my edit. | |
Aug 22, 2014 at 7:21 | history | edited | Marius♦ | CC BY-SA 3.0 |
added 337 characters in body
|
Aug 22, 2014 at 7:20 | comment | added | Jordan |
Okay, but how could I filter the collection considering my code example ? adding addCustomFilter in my block class, throws exception of undefined function.
|
|
Aug 22, 2014 at 7:09 | history | answered | Marius♦ | CC BY-SA 3.0 |