[Solar-talk] Filter stack - Solar does not search Vendor_Filter or Vendor_Model_ for filters

Raymond Kolbe rkolbe at gmail.com
Tue Dec 4 17:44:54 CST 2007


Not sure what I am missing but that doesn't seem to work :(

On Dec 4, 2007 5:27 PM, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:

> On Dec 4, 2007 7:39 PM, Raymond Kolbe wrote:
> > Seeing how this is my first attempt with Solar_Stack I am asking for
> your
> > help. How can I make Solar search (at the very least)
> > Vendor_Model_User_Filter and/or Vendor_Filter directories?
>
> This is what I did:
>
> * Added classes:
>
>    Vendor_Sql_Model_Filter extends Solar_Sql_Model_Filter
>    Vendor_Filter extends Solar_Filter
>
> * in Vendor_Sql_Model, the filter class is set to Vendor_Sql_Model_Filter
>
> * Vendor_Sql_Model_Filter has only this:
>
>    public function setFilterClass($list = null)
>    {
>        parent::setFilterClass('Vendor_Filter');
>    }
>
> * Done. Now Vendor/Filter is always searched before Solar_Filter and
> Solar_Sql_Model_Filter (if i remember well).
>
> -- rodrigo
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20071204/3225291d/attachment.html


More information about the Solar-talk mailing list