I've found out that when I extends Zend_Db_Table_Abstract
in my model I get
An Error Ocurred
Aplication error
When I run this code
<?php
class Admin_Model_News
{
protected $_name = 'news';
protected $_primary = 'new_id';
public function addNews($data) {
$this->insert($data);
}
}
It works properly, but when I run
<?php
class Admin_Model_News extends Zend_Db_Table_Abstract
{
protected $_name = 'news';
protected $_primary = 'new_id';
public function addNews($data) {
$this->insert($data);
}
}
It messes up What could be wrong? You can check some of my files here