justboil.me
justboil.me copied to clipboard
Edit image path to load
I did the config as follows:
$config['img_path'] = '/myproject/public/editoruploads';
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path'];
and images got saved as :
However, I might need to load the images in different pages having different urls which fails as in the new page the url should be ../../../editoruploads/investor21.jpg.
How can I configure the load path to check if the img is not present in a certain url, to check in another one?!