On 9/20/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
>
> First off, in plugins, you don't need to define every method. Just
> override the methods you wish to utilize, such as the one below:

Yeah, I just have those there, for now, so I know what I have access
to. As you can see, I still have the example "print" commented out
above.

>
> >     public function dispatchLoopStartup(Zend_Controller_Request_Abstract 
> > $response) {
>
> <snip a little...>
>
> >        $viewRenderer = 
> > Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
> >        $view = $viewRenderer->view;
>
> At this point, the ViewRenderer hasn't needed to do anything with the
> view yet, so it actually hasn't even instantiated it! If you'd had on
> error_reporting, you would have seen some notices and warnings about the
> view property not existing.
>
> Easy solution: before the line above, add this:
>
>     $viewRenderer->initView();
>
> This will instantiate the view object, allowing you to then access it.
>

Ah ha! Well, that did work! Yeah, I need to turn on error reporting
for this site in my testing. I normally see this stuff in my dev env
(at home) but I've done so much work server side, my "prod"
environment and dev code is all out of sync. ha. Looks like it's time
to insure error reporting and display errors are turned on!

Thanks much. All working now. One more step out of the way.

-- 
Philip
[EMAIL PROTECTED]
http://www.gpcentre.net/

Reply via email to