xPDO не может загрузить файлы модели базы данных

Не получается подгрузить модель базы данных.
В логе ошибок получаю следующую картину:
[error] 29027#0: *155208 FastCGI sent in stderr: «PHP message: PHP Fatal error: Class 'Billing_mysql' not found in path/to/my/site/core/xpdo/xpdo.class.php on line 763
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() path/to/my/site/assets/components/billing/connector.php:0
PHP message: PHP 2. modConnectorRequest->handleRequest() path/to/my/site/assets/components/billing/connector.php:18
PHP message: PHP 3. modConnectorRequest->prepareResponse() path/to/my/site/core/model/modx/modconnectorrequest.class.php:66
PHP message: PHP 4. modConnectorResponse->outputContent() path/to/my/site/core/model/modx/modconnectorrequest.class.php:79
PHP message: PHP 5. modX->runProcessor() path/to/my/site/core/model/modx/modconnectorresponse.class.php:131
PHP message: PHP 6. modProcessor->run() path/to/my/site/core/model/modx/modx.class.php:1632
PHP message: PHP 7. BillingGetListProcessor->process() path/to/my/site/core/model/modx/modprocessor.class.php:173
PHP message: PHP 8. xPDO->newObject() path/to/my/site/core/components/billing/processors/getlist.class.php:22»


В коннекторе компонент подключается так:
$modx->getService('billing','Billing', $corePath. 'model/billing/');
Класс подгружается, в его конструктореесть
$modx->addPackage('billing',$this->config['modelPath']);
где $this->config['modelPath'] правильный путь до папки модели.

Покопавшись в коде xPDO, обнаружил, что xPDO->loadClass пытается грузить файлы из стандартного пути /modx/model. Как его заставить брать путь компонента?
Виталий Киреев
09 августа 2013, 05:26
modx.pro
1 622
0

Комментарии: 1

Василий Наумкин
09 августа 2013, 09:57
0
bezumkin.ru/sections/components/252/

Тут все полностью работает, советую покопать исходники.
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
    1