SubModules

19 views
Skip to first unread message

DK

unread,
Dec 11, 2011, 7:09:29 PM12/11/11
to Alloy
So I am trying create some submodules but having trouble routing to
them.

I have a folder under Modules named 'Api' which has it's controller.
I then want to create submodules like 'Users', 'Roles', etc.

So my folder path structure looks like:
app
Module
Api
Users
Roles

What does my router rule need to look like to route url's to these
submodule controllers?

Vance Lucas

unread,
Dec 12, 2011, 10:53:52 AM12/12/11
to allo...@googlegroups.com
The submodules can be accessed via underscores by default.

So for instance:

And on down. So each underscore represents a namespace/folder separator when dispatched.

--
Vance Lucas
http://vancelucas.com
Reply all
Reply to author
Forward
0 new messages