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

Raymond Kolbe rkolbe at gmail.com
Tue Dec 4 15:39:51 CST 2007


Hello all,

I have created a filter called sanitizeMD5 which takes a value (string) and
an optional salt (string) and returns the appropriate MD5 hash. I have added
$this->_addFilter('password', 'sanitizeMD5'); to my Vendor_Model_Users model
but Solar throws an exception (Solar_Class_Stack_Exception_ClassNotFound)
stating it can not find the class sanitizeMD5. It appears that Solar is only
searching Solar_Filter_ and Solar_Sql_Model_Filter_ directories for filters.

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?

Also, I vote that (if it isn't already) this be added into Solar base code
for ease of use.

Any advice, comments, and/or suggestions are welcome.

Thank you,
Raymond K.


P.S. This filter works just fine as I copied it to Solar_Filter for testing
and the value it updates in the database table is correct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20071204/51078d50/attachment.html


More information about the Solar-talk mailing list