2

I use customized paths for my application based on Zend Framework (a.k.a. themes).

The view scripts are saved in public/themes/themename/modulename/..., so switching the application theme is just substituting themename in the path.

How to tell Zend Tool to generate the view scripts in this directory instead of the default one? I suppose some kind of provider is needed?

How to register the provider to have it by default for all zf based projects?

takeshin
  • 49,108
  • 32
  • 120
  • 164

3 Answers3

1

Look at the default Zend Providers and extend the classes with your own, overloading the paths.

Adrian
  • 128
  • 1
  • 6
0

In your bootstrap you can add a script path:

protected function _initViewScripts()
{
    $this->bootstrap('view');
    $view = $this->getComponent('view');

    $view->addScriptPath('path/to/view/scripts/');
}
smack0007
  • 11,016
  • 7
  • 41
  • 48
0

I cannot tell you how you can achieve what you want but I can point you to some great help. Zendcast If you don't know about zendcast its a great palce to look for tutorials about the zend framework.

Iznogood
  • 12,447
  • 3
  • 26
  • 44