1
Моя папка файлменеджер находится здесь:Получение относительный путь от папки
localhost/cakeapp/app/webroot/js/tinymce/js/tinymce/plugins/filemanager/
В cakeapp корневой каталог, у меня есть две папки:
uploadedImages (cakeapp/uploadedImages)
UploadedImagesThumbs (cakeapp/uploadedImagesThumbs).
У меня такая ситуация в config.php
Файл:
$base_url ="http://localhost";
// path from base_url to base of upload folder (with start and final /)
$upload_dir = '/cakeapp/uploadedImages/';
// relative path from filemanager folder to thumbs folder (with final /)
$thumbs_base_path = '???????/uploadedImagesThumbs';
// relative path from filemanager folder to upload folder (with final /)
$current_path = '???????/uploadedImages/';
Как получить правильный относительный путь для $thumbs_base_path
и $current_path
от fi папка lemanager?
'$ thumbs_base_path =» ../../../../../ .. /../../ uploadedImagesThumbs/'; '? – rlatief
Спасибо, это работает! Я делал семь раз «../», а не восемь, когда пытался решить эту проблему. – michael24B
Это вряд ли похоже на хорошее кодирование ... – paullb