Здравствуйте. Прошу помощи знатоков.
Создал новую схему в OcStore 2.1.0.2.1
По сути просто скопипастил home.tpl и home.php, в home.php указал следующее:
<?php
class ControllerNewsPage extends Controller {
public function index() {
$this->document->setTitle($this->config->get('config_meta_title'));
$this->document->setDescription($this->config->get('config_meta_description'));
$this->document->setKeywords($this->config->get('config_meta_keyword'));
if (isset($this->request->get['route'])) {
$this->document->addLink(HTTP_SERVER, 'canonical');
}
$data['column_left'] = $this->load->controller('common/column_left');
$data['column_right'] = $this->load->controller('common/column_right');
$data['content_top'] = $this->load->controller('common/content_top');
$data['content_bottom'] = $this->load->controller('common/content_bottom');
$data['footer'] = $this->load->controller('common/footer');
$data['header'] = $this->load->controller('common/header');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/news_page.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/common/news_page.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/common/news_page.tpl', $data));
}
}
}
т.е. просто поменял имя контроллера на ControllerNewsPage.
Сейчас у меня появляется ошибка: Fatal error: Class 'Controllernewspagenewspage' not found in /var/www/u0197930/data/www/мойдомен/system/storage/modification/system/engine/action.php on line 43 В action.php в 43 строке указано $controller = new $class($registry);
Подскажите пожалуйста, как мне корректно добавить класс контроллера?