1. Go to this page and download the library: Download comur/image-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
/* DEPRECATED, Use upload dir
public function getUploadRootDir()
{
// absolute path to your directory where images must be saved
return __DIR__.'/../../../../../web/'.$this->getUploadDir();
}*/
/* Directory relative to your public dir (see public_dir in configuration)
public function getUploadDir()
{
return 'uploads/myentity';
}
public function getWebPath()
{
return null === $this->image ? null : '/'.$this->getUploadDir().'/'.$this->image;
}
/* DEPRECATED, Use upload dir
public function getUploadRootDir()
{
// absolute path to your directory where images must be saved
return __DIR__.'/../../../../../web/'.$this->getUploadDir();
}*/
public function getUploadDir()
{
return 'uploads/myentity';
}
public function getWebPath()
{
return null === $this->image ? null : '/'.$this->getUploadDir().'/'.$this->image;
}
/* DEPRECATED, Use upload dir
public function getUploadRootDir()
{
// absolute path to your directory where images must be saved
return __DIR__.'/../../../../../web/'.$this->getUploadDir();
}*/
public function getUploadDir()
{
return 'uploads/myentity';
}
public function getWebPath()
{
return null === $this->image ? null : '/'.$this->getUploadDir().'/'.$this->image;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.