Clearing up the modular setup mist....

View: New views
6 Messages — Rating Filter:   Alert me  

Clearing up the modular setup mist....

by etopian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

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

by Pádraic Brady :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by etopian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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...


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!


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

by Pádraic Brady :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by etopian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The class in the Admin's index controll is prefixed with the module name. I've attached my Bootstrap.php


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!

Bootstrap.php

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

by etopian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I uploaded the complete application on a hosted server and there it works fine, so it has to be something in my server/virtual host setup....



The class in the Admin's index controll is prefixed with the module name. I've attached my Bootstrap.php


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

etopian wrote:
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!

Bootstrap.php