Matthew Weier O'Phinney wrote:
-- Juan Felipe Alvarez Saldarriaga <[EMAIL PROTECTED]><mailto:[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.
Yea, thx, but I have another issue now, I change the directory structure to the
zfw default:
modules/
default/
controllers/
IndexController.php
views/
scripts/
index/
index.phtml
admin/
controllers/
IndexController.php
views/
scripts/
index/
index.phtml
So I try to execute the admin module, index controller and I got a exception
once again:
Fatal error: Uncaught exception 'Zend_Exception' with message 'File
"IndexController.php" was not found'
The correct way to access this via query string is ->
http://mywebsite.com/admin, right ?
Obviouslly I change the front controller config:
->addModuleDirectory( '../modules' )
Somebody can help on this ?
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
Zend - The PHP Company | http://www.zend.com/
________________________________
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents of this
message, which arise as a result of e-mail transmission. If verification is
required please request a hard-copy version.