First off, thanks for MX. Your hard work is appreciated.
I have a quick question. Can Modules contain more than 1 controller each? I tried to add a second controller to a module and it doesn’t seem to be working.
I first created a ‘movies’ module, and inside it’s controllers directory, I put in a ‘movies’ controller. I went to
<a href="http://my.domain.tld/movies">http://my.domain.tld/movies</a>
and everything worked fine. But then I added a ‘actors’ controller, and tried to go to
<a href="http://my.domain.tld/movies/actors">http://my.domain.tld/movies/actors</a>
it didn’t work. I then tried to go to
<a href="http://my.domain.tld/movies/actors/index">http://my.domain.tld/movies/actors/index</a>
and it didn’t work either. When I added a ‘actors’ method to the ‘movies’ controller, that worked without a problem.
My setup is:
app
—/controllers
—/core
—/—/MY_Controller.php (extends MX_Controller)
—/[other stuff]
—/models
—/modules
—/—/movies
—/—/—/controllers
—/—/—/—/movies.php (extends MY_Controller)
—/—/—/—/actors.php (extends MY_Controller)
—/—/—/models
—/—/—/views
—/views
Am I doing something wrong?
EDIT: I forgot to mention that I am using MX 5.4, alongside DMZ 1.8 (in case that helps any)