Главная » 2011 » Февраль » 17 » Silverstripe ошибка: Uncaught Exception: Object->__call(): the method 'getdestdir' does not exist on 'Page'
01:37
Silverstripe ошибка: Uncaught Exception: Object->__call(): the method 'getdestdir' does not exist on 'Page'
Если в Silverstripe, после попытки генерировать кеш (http://mysite.com/dev/buildcache/) возникает ошибка:
Error at sapphire/core/Object.php line 724: Uncaught Exception: Object->__call(): the method 'getdestdir' does not exist on 'Page'


Значит добавить строку в /mysite/_config.php, которая включит механизм кеширования на сайте:

Object::add_extension("SiteTree", "FilesystemPublisher('assets/cache/', 'html')");

Я предпочитаю размещать кеш-файлы в папке assets
Просмотров: 601 | Добавил: Sergey Saenko | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *: