Hi Paul
It does seem to be order specific. Which in a way makes sense in terms
of dependencies, perhaps.
The two lines shown are all I needed to place in.
resources.modules[] =
Is not present at all, and yet the modules as expected. My thought is
that the resources.modules[] line item is meant to shortcut having to
set the controllerDirector / moduleDirectory with some inbuilt defaults.
Whatever they are, they're not compatible with my set-up for some reason.
It's these little things that keep life interesting.
Shane
On 8/23/2010 5:48 PM, Mike Wright wrote:
Shane McGovern wrote:
Hi Paul
I tried the resource.modules[] = but to now avail. I did however move
the functionality from my Boostrap.php to application.ini but using
these two lines instead
resources.frontController.controllerDirectory = APPLICATION_PATH
"/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
Excluding either prevents module set-up.
<snip/>
Hi Shane,
I've been fighting modularization for quite a while but one thing that
I've discovered is that the order of the lines in your application.ini
is _extremely_ important. A single line in the wrong order _will_ break
everything.
Here is a copy of a part my .ini that I'm using in one of my current
experiments; maybe it will help you.
; application resources
resources.frontController.controllerDirectory = APPLICATION_PATH
"/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =
resources.layout.layout = "default"
resources.layout.layoutPath = APPLICATION_PATH "/views/layouts"
I think it's important that the modules declaration comes before the
layouts, views, etc.
I got my first successful results by starting here:
http://www.amazium.com/blog/create-modular-application-with-zend
If you become a master *please* enlighten the rest of us. This is a
very common source of frustration for a lot of us who are not the ZF
developers.
Best of luck :D
ps: no disrespect to the zf developers. I've seen the incredible load
on your shoulders and am beyond impressed...