Well, you could always use the Front Controller to store instances -
use the $front->setParam('db', $db) to store your database connection
and then in your controllers you could retrieve them from the front
controller and store them locally for processing.
E.g.
MyController extends Zend_Controller_Action
{
public function init()
{
$this->db = $this->getInvokeArg('db');
...etc...
}
}
Hello,
Nope, Zend_Registry is the way to do it. If you are using these
variables a lot in a controller (every action, for example), you may
be better off creating instance variables and assigning references to
these instance variables in the controller's init() method. That would
clean things up.
Mitchell Hashimoto
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com