-- Juan Felipe Alvarez Saldarriaga <[EMAIL PROTECTED]> wrote
(on Wednesday, 13 June 2007, 09:55 AM -0500):
> I have this issue using a modular structure in ZFW, v1.0.0-rc2, I add
> my own modular structure to the front controller:
>
> Directories structure:
> controllers/
> admin/
> scripts/
> default/
> scripts/
> IndexController.php
>
> Front controller config:
> $objFrontController = Zend_Controller_Front::getInstance()
> ->setModuleControllerDirectoryName( 'scripts' )
> ->addModuleDirectory( '../controllers' )
> ->setBaseUrl( '/' )
> ->throwExceptions( true );
The problem is that the directory structure you're using is not the one
outlined in the Conventional Modular chapter of the Zend_Controller
docs -- which is causing the ViewRenderer to not know where to find view
scripts. Keeping the fact that you're using 'scripts' as your controller
directory name, it should more like this:
controllers/
default/
scripts/
IndexController.php
views/
scripts/
index/
index.phtml
admin/
scripts/
views/
scripts/
Note the location of the 'views' folder in each module subdirectory.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/