I want to get the select object ($db->select()) from the db adapter, add some sorting or filtering rules and pass it later to the model. -- Pagarbiai, Vladas Diržys
On Wed, May 27, 2009 at 10:10, Dalibor Karlović <[email protected]> wrote: > On Tuesday 26 May 2009 20:40:38 Vladas Diržys wrote: > > Hi, > > > > what is the right way to get a db (or any other) resource in the > > controller? Now I'm using following line: > > $this->getFrontController()->getParam('bootstrap')->getResource('db'); > > Why do you need you DB instance inside your controller? > > -- > Dado >
