2015-04-03

How to create table in bootstrap

Add this code:
$this->bootstrap('db');
$db = $this->getResource('db');
Zend_Registry::set('db', $db);
after
parent::__construct($application);
in your bootstrap constructor.
And then you can create table:
$tableAuthSession = new Application_Model_DbTable_AuthSession();

No comments:

Post a Comment