SirEdward wrote: > Hi > > This method is great and what I was after, except that because I am using > > error_reporting (E_ALL|E_STRICT); > > > I get the following error > > > Strict Standards: Declaration of XXXXXXX::fetchAll() should be compatible > with that of Zend_Db_Table_Abstract::fetchAll() in > /application/models/XXXXX.php on line 55 > > > What changes need to be made to the declaration in order to make it > compatible? >
When you override a function, the signature needs to be the same as the one you are overriding. So you need to change your definition of fetchAll() to be: public function fetchAll($where = null, $order = null, $count = null, $offset = null) -- Brenton Alker http://blog.tekerson.com/
signature.asc
Description: OpenPGP digital signature