We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

plugin route? | Forum

Marcus
Marcus Dec 28 '15
is there a way to declare more that one route for a plugin?

My plugin is access like this:

OW::getRouter()->addRoute(new OW_Route('test.index', '/test', "TEST_CTRL_Custom", 'index'));

How can I add make this plugin accept more URLs apart from /test/

Like:

/test2
/test3


etc???
The Forum post is edited by Marcus Dec 28 '15
Marcus
Marcus Dec 28 '15
How to decode this please:

OW::getRouter()->addRoute(new OW_Route('test.index', '/test', "TEST_CTRL_Custom", 'index'));
ross Team
ross Dec 28 '15
Topic was moved from General Questions.