Пытаюсь сделать новый контроллер.
Соответственно создал файл \controller\account\fastorder.php
<?php
class ControllerAccountFastorder extends Controller {
private $error = array();
public function index() {
$this->language->load('account/fastorder');
$this->document->setTitle($this->language->get('heading_title'));
if (($this->request->server['REQUEST_METHOD'] == 'POST') /*&& $this->validate()*/ &&
isset($this->request->post['customer_name']) && ($this->request->post['customer_name'] !== "") &&
isset($this->request->post['customer_phone']) && ($this->request->post['customer_phone'] !== "")) {
$mail = new Mail();
$mail->protocol = $this->config->get('config_mail_protocol');
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->hostname = $this->config->get('config_smtp_host');
$mail->username = $this->config->get('config_smtp_username');
$mail->password = $this->config->get('config_smtp_password');
$mail->port = $this->config->get('config_smtp_port');
$mail->timeout = $this->config->get('config_smtp_timeout');
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->setSubject(html_entity_decode($this->language->get('email_subject'), ENT_QUOTES, 'UTF-8'));
$mail->setText(strip_tags(html_entity_decode($this->request->post['customer_name'], ENT_QUOTES, 'UTF-8')));
$mail->send();
} else {
echo "BAD";
}
}
}
?>
Однако при вызове я получаю ошибку:
Class 'Controller' not found in /var/www/user270/data/www/diolika.ru/catalog/controller/account/fastorder.php on line 2
Похоже я что-то не понимаю в алгоритмах линковки PHP. Подскажите куда копать, плиз