ok, I use this and worked.
[PHP]
count($this->comentarios);
[/PHP]
I know that the atribute _count stores the value, but how can I get it if it's protected? Is there another way to get this value?
in the controller:
[PHP]$this->view->comentarios = $comentarios->fetchAll($where, $order, $count, $offset);[/PHP]
in the view:
[PHP]<?php echo $this->comentarios->_count ?>[/PHP]
and i get this:
Fatal error: Cannot access protected property Zend_Db_Table_Rowset::$_count in
ok, I use this and worked.
[PHP]
count($this->comentarios);
[/PHP]
count() is how I always do it.