1. Where's the error?
   2. You shouldn't use 'require' to load a class. Use the autoloader or
   'require_once'
   3. If you're using the autoloader, have you added the 'Default'
   namespace? Is your class in the application models/DbTable directory?

- pw

On Sun, Sep 13, 2009 at 6:22 AM, Stephen Alistoun <[email protected]
> wrote:

>
> Hey all,
>
> In the module section where i have an extends Zend_Db_Table_Abstract it
> keeps on giving me a application error.
>
> When i take out the extends Zend_Db_table_Abstract it gives me no errors.
>
> So how do i go about getting no errors when extending the
> Zend_db_table_abstract.
>
> Thanks,
>
> Stephen
>
> /******Controller******/
>
> class IndexController extends Zend_Controller_Action
> {
>    public function indexAction()
>    {
>        $users = new Default_Model_DbTable_UsersTable();
>    }
> }
>
> /******Module*******/
>
> require "Zend/Db/Table/Abstract.php";
>
> class Default_Model_DbTable_UsersTable extends Zend_Db_Table_Abstract
> {
>    protected $_name = 'users';
> }
> --
> View this message in context:
> http://www.nabble.com/Zend_Db_Table-Application-Error-tp25423202p25423202.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>

Reply via email to