getImagePath example

return;
        }

        $previewData = $this->container->get(ModelManager::class)->getRepository(Preset::class)->createQueryBuilder('preset')
            ->select('preset.presetData, preset.preview')
            ->where('preset.id = :id')
            ->setParameter('id', $id)
            ->getQuery()
            ->getSingleResult(Query::HYDRATE_ARRAY);

        $previewData['previewUrl'] = $this->getImagePath($previewData['preview']);

        $this->View()->assign([
            'success' => true,
            'data' => $previewData,
        ]);
    }

    /** * @throws Enlight_Controller_Exception * * @return void */
Home | Imprint | This part of the site doesn't use cookies.