« Return to Thread: Clearing up the modular setup mist....

Re: Clearing up the modular setup mist....

by Pádraic Brady :: Rate this Message:

Reply to Author | View in Thread

Any chance of posting your bootstrap? Also, if you're (sorry, were ;)) reading the tutorials ensure the Admin's index controller class is called "Admin_IndexController".

Paddy


Pádraic,

Thanks for replying! My application is actually built upon your tutorials (thanks for those!!!). Sorry to see you blog is offline right now...

Anyway, in my .htaccess I have:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php

I did nothing with the routing and I'm using the Bootstrap.php as you described...

Pádraic Brady wrote:
What's in your .htaccess file?

If rewriting is working correctly, and the front controller configured, and you haven't changed routing - it should work without a hitch.

Paddy

etopian wrote:
Hi,

I'm trying to build a multiple module application using Zend Framework. Ik Have followed the conventional directory structure and have the following structure:

application
    controllers
    models
    views
    admin
        controllers
        views

public

Within the structure I have more directories, but I don't think they are relevant for the question.


When I browse to the virtual host (http://eCMS.local) I set up, I get the default page that is loaded through the IndexController and the index.phtml. But when I browse to the admin module (http://eCMS.local/admin), I get a 404 error.

I have tried to move all modules into a modules directory and use the addModuleDirectory() on my frontcontroller, no luck.

I tried changing settings in httpd.conf without any result.

So I would like to know if anyone can tell me how to solve this issue, so I can continue my quest on creating a multiple module application using Zend Framework.

Thanks!
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation - Irish Representative

 « Return to Thread: Clearing up the modular setup mist....