Anybody know how to use the newly merged Phalcon\Mvc\Url::get() to append query params (https://github.com/phalcon/cphalcon/pull/877)?
Usage example pls?
$url = new Phalcon\Mvc\Url();
echo $url->get('/show/products', array('id' => 1, 'name' => 'Carrots')), "\n"; // /show/products?id=1&name=Carrots
@Phalcon - since your example does not require any non-default routes to exist, I assumed that going to
would make values of "id" and "name" available in Router or Dispatcher.
Unfortunately, that did not happen. What should I do to get those values, apart from fetching them from $_GET?
Since you have these in the Query string, you should use the $this->request object: