/** * Before render callback. Overridden to merge passed args with url options. * * @param string $viewFile * @return void */ public function beforeRender($viewFile) { $this->options['url'] = array_merge($this->request->params['pass'], $this->request->params['named']); if (!empty($this->request->query)) { $this->options['url']['?'] = $this->request->query; } parent::beforeRender($viewFile); }