public function getCount()
{
$select = $this->select();
$select->from($this, array('count(*) as amount'));
$rows = $this->fetchAll($select);
return($rows[0]->amount);
}
Categories
public function getCount()
{
$select = $this->select();
$select->from($this, array('count(*) as amount'));
$rows = $this->fetchAll($select);
return($rows[0]->amount);
}