public function downloadAction()
    {
        if (null === $file = (new CmsFileQuery)->byObject($this->object, $this->objectId)
            ->findPk($this->id)) {
            return '';
        }
        $this->getResponse()->redirectToUrl($file->getUrl());
    }
public function downloadAction()
    {
        if (null === $file = (new CmsFileQuery)->byObject($this->object, $this->objectId)
            ->findPk($this->id)) {
            return '';
        }
        $this->getResponse()->redirectToUrl($file->getUrl());
    }
public function downloadAction ( ) { if ( null === $ file = ( new CmsFileQuery ) -> byObject ( $ this -> object , $ this -> objectId ) -> findPk ( $ this -> id ) ) { return '' ; } $ this -> getResponse ( ) -> redirectToUrl ( $ file -> getUrl ( ) ) ; }
Przekierowanie na plik
@return string
Przekierowanie na plik