-- Steven Szymczak <[EMAIL PROTECTED]> wrote
(on Wednesday, 15 October 2008, 11:09 PM +0100):
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the site (e.g.):
>
> public function init() {
Steven Szymczak wrote:
>
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the site (e.g.):
>
> public function init() {
> $view_cfg = Zend_Registry::get('SITE_CFG');
>
> $thi
Out of curiosity, why the resistence to subclassing the action controller?
-Matt
On 10/15/08, Steven Szymczak <[EMAIL PROTECTED]> wrote:
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the s
Sorry my mistake, I need to learn how to read better ;)
On Thu, Oct 16, 2008 at 12:04, Tim Nagel <[EMAIL PROTECTED]> wrote:
> I created my own controller, derived from Zend_Controller_Action, calling
> it Tim_Controller_Action and all of my controllers derive from my
> controller. (putting it in
I created my own controller, derived from Zend_Controller_Action, calling it
Tim_Controller_Action and all of my controllers derive from my controller.
(putting it in Library/Tim/Controller/Action.php)
Dont forget to call parent::init(); if you override the init in the real
controllers.
On Thu, O
you could do it in your bootstrap.
Steven Szymczak wrote:
>
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the site (e.g.):
>
> public function init() {
> $view_cfg = Zend_Regi
Every one of my action controllers has an init() function that pulls a
config object from the registry and uses it to set some paths used
throughout the site (e.g.):
public function init() {
$view_cfg = Zend_Registry::get('SITE_CFG');
$this->view->__set('pubImages', $view_cfg->