Hi Ryan

I had a quick look at your table/row definitions.

This will work:-

class Accounts extends Zend_Db_Table
{
    protected $_name = 'accounts';
    protected $_rowClass = 'Account';
}

You don't need the extra Rowset definition if there's no specific functionality you need to add - in most cases the default rowSet class is adequate.

What puzzles me is that your '$this->setRowClass('Account')' _should_ have worked. I'll do some digging later to see if anything is awry and post a JIRA issue if it turns out to be the case.

Cheers
Update:



Now I know I’ve missed something.



In my debugging process, here’s what I did.



Open: Zend/DB/Table/Rowset/Abstract.php

Goto Line: 71

Replace Value of: protected $_rowClass = ‘Zend_Db_Table_Row’

With: protected $_rowClass = ‘Account’



Have access to Account->helloWorld();



I’ll keep digging, I seem to be missing a step along the way.



-Ryan



PS: Undo changes, save. ;)



--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com


Reply via email to