Home » Tag Archives: Apache Server

Tag Archives: Apache Server

How can replace all images with the same name in the assets folder

Pimcore

Put the below function in your class file and run the static route. /** * @Route("/image") */ public function imageUploadAction() { $image = "/folder1/image.png"; //$image = "/folder2/image.png"; // Uncomment this path after upload first image, than the old image will be replaced $image_parts = pathinfo($image); $exist = \Pimcore\Model\Asset::getByPath('/' . $image_parts['filename'] …

Read More »

How To Generate Pimcore Bundles?

Pimcore

To generate bundles the below commands can be use. The steps run on Pimcore 5. The details are below # generate bundle interactively $ bin/console pimcore:generate:bundle # if the command is not available, make sure you are running the console in dev environment (see note below) $ bin/console pimcore:generate:bundle --env=dev …

Read More »