I realized the problem has nothing to do with modules configuration. It's the url; due to the nested directories to the application, this is how it looks:
http://localhost/dir1/dir2/public/:module/:controller/:action

With this, the standard router must be having problems getting right the uri schema. Somehow I just don't know.. The solution to this is using virtual hosts, so that the uri looks like this (need to get rid of '/public' from the url):
http://servername/:module/:controller/:action

I believe mod_rewrite should do it too.

On Mon, Mar 28, 2011 at 1:46 PM, Samuel Waithaka <samwaithaka@gmail.com> wrote:
To create a new module (admin module to be precise) this is what I did:

1. Created the modular directory structure inside application directory:

application
    modules
        admin
            models
            controllers
                IndexController.php (class Admin_IndexController)
            views
                scripts
                    index.phtml
                helpers
                filters

2. Updated application.ini by adding the following lines:
   resources.frontController.moduleDirectory = APPLICATION "/modules"
   resources.module[] = ""

3. Created the bootstrap inside the root of the module directory (admin/Bootstrap.php) with the relevant empty class (Admin_Bootstrap extends ...)

However, it just slaps me on the face with a 404 Not Found! Everything else however works as it should. What could I be doing or not doing?!

Anyone working with ZF, please help.


--
Samuel Waithaka
Techiepreneur | http://groups.to/techiepreneur
http://www.linkedin.com/in/waithaka
http://twitter.com/samwaithaka




--
Samuel Waithaka
Techiepreneur | http://groups.to/techiepreneur
http://www.linkedin.com/in/waithaka
http://twitter.com/samwaithaka