Class 'documents' not found в 6-й версии

#
Class 'documents' not found в 6-й версии
Здравствуйте.
В 5-й версии для вывода определенной страницы в макете использовал следующую конструкцию:
$documents = new documents();
// Идентификатор документа
$document_id = 11;
$documents->ShowDocument($document_id);

В 6-й версии попытка применить этот код приводит к ошибке: Fatal error: Class 'documents' not found in /home/s/sushidacom/public_html/templates/template7/template.htm on line 122

Как нужно изменить код, чтобы тот работал в 6-й версии?


#
Re: Class 'documents' not found в 6-й версии
//Вывод страницы с id 7   
<?php
Core_Entity::factory('Document', 7)->Document_Versions->getCurrent()->execute();
?>
#
Re: Class 'documents' not found в 6-й версии
https://www.dropbox.com/s/s0pg68wk8fab290/snippet.txt  Небольшой сниппет по hostcms, может сгодиться
Авторизация