zaznam->getStariObvodu(); foreach ($stari as &$polozka) { $polozka['url'] = $this->link('Obvod:view', $polozka['id']); } unset($polozka); $this->template->obvod_id = $obvod; $this->template->filtr = $filtr; $this->template->maxMesicu = self::STUPNICE_MESICU; $this->template->maxPrideleni = self::STUPNICE_PRIDELENI; $this->template->stariJson = Json::encode($stari, htmlSafe: true, forceObjects: true); } }