Hello to newcomers.
If you struggle as myself while following tutorial from title of this topic in Zend Framework documentation, one thing you should do that is not mentioned there and that is clearing configuration cache to be able to use newly created module. As new to Zend I spent few days trying to reconsider what went wrong since I blindly followed tutorial but with no success to load new route from new module.
What I advice here is not way to have that kind of setting in production, but rather it will help you with introductory pitfalls which made me hard time trying to get out.
So you should to do next:
In /config/application.config.php
file you have to do next two changes
- Disable config cache
'config_cache_enabled' => true,
should look like
'config_cache_enabled' => false,
- Disable module map cache
'module_map_cache_enabled' => true,
should look like
'module_map_cache_enabled' => false,
This time I would like to appeal to Zend Framework contributor developers to review documentation and this what I am pointing here because documentation is (if not only then) first station in our framework’s journey. Also, if there is better solution to avoid this pitfall from documentation it would be highly appreciated anyone who would add it here in topic. As said I am pretty much freshman in Zend Framework but one shouldn’t loose days for finding such a trivial issue.
To forum admins, my apology if category wasn’t good for this topic, I just found this as good contribution I would be happy with if same existed before.