-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Thursday, 31 May 2007, 02:22 PM +0100):
> Ok to elobarate on this it seems I get this error when:
> 
> I forward from one module to anothers underconstruction page:
> 
>         // Currently simply forwarding to the Under Constuction page.
>         $this->_forward('index', 'construction', 'page');
> 
> gives me:
> 
> Zend_Controller_Dispatcher_Exception: Invalid controller specified 
> (construction) in 
> D:\AWebEnvironment\ZendFramework-1.0.0RC1\library\Zend\Controller\Dispatcher\Standard.php
>  
> on line 189

1) Did you define the page module when setting your controller directory
   in the bootstrap? I.e., do you have anything like one of the
   following:

     $front->setControllerDirectory(array(
        'default' => ...
        'page'    => '/path/to/page/controllers',
        ...
     ));

  or

    $front->addControllerDirectory('/path/to/page/controllers', 'page');

2) Does this file exit?

    /path/to/page/controllers/ConstructionController.php

3) If you do, does it define the class 'Page_ConstructionController'?


> whereas
> 
>         // Currently simply forwarding to the Under Constuction page.
>         $this->_forward('index', 'construction');
> 
> would work if and only if the user called page and the under 
> construction page were in the same module.
> 
> Hope this make sense
> 
> Cheers
> 
> Ian
> 
> Matthew Weier O'Phinney wrote:
> >-- Ian Warner <[EMAIL PROTECTED]> wrote
> >(on Wednesday, 30 May 2007, 01:59 PM +0100):
> >>I get the following error since the upgrade to version 1
> >>
> >>Zend_Controller_Action_Exception: ViewRenderer cannot locate module 
> >>directory in 
> >>D:\AWebEnvironment\ZendFramework-1.0.0RC1\library\Zend\Controller\Action\Helper\ViewRenderer.php
> >> 
> >>on line 649In the
> >
> >This is likely being called by initView(), which is being called from
> >init(), which is being called by your controller's constructor. The only
> >way to disable the ViewRenderer early in such a situation is to disable
> >it from the bootstrap by using something like
> >$front->setParam('noViewRenderer', true) or, as you tried, removing the
> >helper from the helper broker. But that would mean it's disabled
> >throughout the system.
> >
> >The error message indicates that, when trying to automatically determine
> >the base view path, the ViewRenderer was unable to find the module
> >directory. This can basically only happen if no controller directory
> >matching the current module is found, or if you have overridden the
> >default module name in the dispatcher to be an empty string.
> >
> >Could you send your bootstrap? I'd like to see how you're populating the
> >controller directory to see if I can recreate the issue.
> >
> 

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

Reply via email to