-- SiCo007 <[EMAIL PROTECTED]> wrote
(on Wednesday, 05 March 2008, 06:05 AM -0800):
> Matthew Weier O'Phinney-3 wrote:
> > Well, you have access to the view from the action already. :-)
> > 
> >     $this-view->headLink()->prependStylesheet('pathto/styles/screen.css');
> > 
> 
> I realised that and my mistake this morning when I looked on it with widely
> opened eyes. But for the plugin that is the way to get and ammend the view?

Yes - the code you presented works fine.

If you're using a layout object, you may find the following a little
faster:

    Zend_Layout::getMvcInstance()->getView()->(call helper method here);

Zend_Layout::getView() actually attempts to get the view from the
viewRenderer if no view is registered with it already, and if the view
is not initialized in the ViewRenderer, it will initialize it.

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to