0
votes

I have a problem using modules in ZendFramewok. I have so far created the directory sturucture for modules in application directory.

Application
--configs
--Bootstrap.php
--modules
----default
------controllers
--------ErrorController.php
--------IndexController.php
------models
------views
--------helpers
--------scripts
----------error
------------error.phtml
----------index
------------index.phtml

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

Setup Virtual host for public as ServerName.local

So if type in browser Servername.local I get the default view, but if I type Servername.local/:default/:index/:index I get a 403(Forbidden), if I type Servername.local/default/index/index I get a 404(Not Found), any help??

2
Do you have a route to the modules?Adrian World

2 Answers

1
votes

I believe your missing an "s" on resources.module[], might want to update that to:

resources.modules[] = ''
0
votes

First of all check if mod_rewrite enabled and configured in .htaccess. I believe this 404 error coming from server and not from your application.

After that check your index controller defined as followed: Default_IndexController extends Zend_Controller_Action

If this is not your issue i'll throw in more suggestions.