public function beforeRender() { parent::beforeRender(); $this->template->nazev_rubriky = $this->nazev_rubriky; $this->template->id_rubriky = $this->id_rubriky; $this->template->pozadi = "<style type='text/css'>\n body {background-image: url(/css/" . $this->redakce->findPozadiById($this->id_rubriky) . ");}\n </style>"; }