HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Using Gdn::Dispatcher()->Dispatch($str)?

edited May 2010 in Vanilla 2.0 - 2.8
Hi, I'm writing an Application that runs on Garden/Dashboard alongside Vanilla. I am trying to utilize some of the controllers that Vanilla has such as "Discussion/index". Is there a way for me to trigger this route without having to use "Redirect()" or "ProxyRequest()"? I thought that I may be able to do the following, but it did not work:

$proxy_url = Url('/vanilla/discussion/index/'.$DiscussionID.'?DeliveryType=3', FALSE);
$Dispatcher = Gdn::Dispatcher();

In other words, is there a "forward" function that works within Vanilla?

Thank you!,

Sign In or Register to comment.