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()
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
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