On Thursday 28 May 2009 02:27:03 Steven Szymczak wrote: > Why wouldn't you?
If you have access to a DB instance inside your controller, you're more inclined to use it. :) Which leads to FSUCs. [1] [1] http://sn.im/ixdgi > Dalibor Karlović 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
