[fw-general] Instance of a model.

2009-09-23 Thread Steve Rayner
Following on from by previous post... This is the code in the model for Fetchrow(). // Fetch specified record public function fetchRow($id) { $resultSet = $this->getDbTable()->find($id); foreach ($resultSet as $row){ $entry = new Default_Model_Items()

Re: [fw-general] Instance of a Model

2009-09-23 Thread Alexander Steshenko
What's inside of your model?.. What is 'getList_id'? How does it relate to the framework? On Thu, Sep 24, 2009 at 1:00 AM, Steve Rayner < sray...@williams-refrigeration.co.uk> wrote: > In my controller i have code such as this; > > > > $items = new Default_Model_Items(); > > $id = (int)$this->_r

[fw-general] Instance of a Model

2009-09-23 Thread Steve Rayner
In my controller i have code such as this; $items = new Default_Model_Items(); $id = (int)$this->_request->getPost('id'); $items->fetchrow($id); $list_id = $items->getList_id(); This is what I am trying to do. 1. Create a new instance of the model Default_Model_Items. 2. Get the p