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.3
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();
$Dispatcher->Dispatch($proxy_url);

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

Thank you!,

Richard
Sign In or Register to comment.