嗨,目前我正在尝试将组件导入 shell,这是我的代码
<?php
App::import('Component', 'OptimalPayment');
class PushEftShell extends Shell {
var $uses = array('User' , 'Payment');
function main() {
$OptimalPayment = OptimalPaymentComponent();
$Organsation = $this->Organisation->find('all', array(
'fields' => array('id', 'name'),
'contain' => array(
'ContactPerson', 'BankDetail', 'Address', 'Phone'
)
));
}
}
?>
我有这个错误信息
Fatal error: Class 'Component' not found in C:\web\appName\app\controllers\components\optimal_payment.php on line 24
我的导入有什么问题?
TIA