public function partial($name, $module, $model) { if (!is_array($model)) { $model = $model->toArray(); } if (!empty($this->arrayExtended)) { foreach ($this->arrayExtended as $k => $v) { if (!isset($model[$k])) { // foolproof! $model[$k] = $v; } } } else { // NB! Try to not be lazy bastard and set arrayExtended! $model['view'] = $this->view; #$model['config'] = $this->config; } return parent::partial($name, $module, $model); }