I have a ZF1.12 project with this structure:
|Project
|-Application
|-configs
|-application.ini
|-modules
|-default
|-configs
|-controllers
|-models
|-views
|-Bootstrap.php
|-api
|-configs
|-controllers
|-models
|-views
|-Bootstrap.php
|-Bootstrap.php
|-Library
|-Public
module configuration in application.ini
resources.modulesetup[] =
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.defaultControllerName = "index"
resources.frontController.defaultAction = "index"
resources.frontController.defaultModule = "default"
resources.modules[] = ""
these links
$this->url(array('module'=>'default', 'controller'=>'index', 'action'=>'index'));
$this->url(array('module'=>'default', 'controller'=>'index', 'action'=>'one'));
$this->url(array('module'=>'admin', 'controller'=>'index', 'action'=>'index'));
$this->url(array('module'=>'admin', 'controller'=>'index', 'action'=>'two'));
at /project.com/ return
/project.com/ ---> works
/project.com/ ---> no module, no controller and no action...
/project.com/admin/ ---> works
/project.com/admin/ ---> no controller and no action...
and the same links at /project.com/default/ return
/project.com/ ---> works
/project.com/index/one ---> doesn't work and return 404 error
/project.com/admin/index/index ---> works
/project.com/admin/index/two ---> works
Something is wrong, of course, I should have always the same return. The second one, also, gives me a 404 error.. I aspected something like /project.com/default/index/one that works if I put it in the address bar in browser.
Why the url() method does not return the url with the "default" module included?