Доброго времени суток! Хочу создать свою страницу страницу на подобие уже имеющейся - Связаться с нами 1) создал контроллер controller/information/shipping_payment.php PHP: <?phpclass ControllerShippingPayment extends Controller { private $error = array(); public function index() { $this->load->language('information/shipping_payment'); $this->document->setTitle($this->language->get('heading_title')); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/shipping_payment') ); $data['heading_title'] = $this->language->get('heading_title'); $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/information/shipping_payment.tpl')) { $this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/information/shipping_payment.tpl', $data)); } else { $this->response->setOutput($this->load->view('default/template/information/shipping_payment.tpl', $data)); } } } 2) создал шаблон template/information/shipping_payment.tpl HTML: <?php echo $header; ?> <div class="container"> <ul class="breadcrumb"> <?php $breadlast = array_pop($breadcrumbs); foreach ($breadcrumbs as $breadcrumb) { ?> <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> <?php } ?> <li><?php echo $breadlast['text']; ?></li> </ul> <div id="content"></div> </div> <?php echo $footer; ?> 3) в контроллере catalog/controller/common/header.php создал переменную PHP: $data['shipping_payment'] = $this->url->link('information/shipping_payment'); 4) вывел в шаблон HTML: <a class="btn" href="<?php echo $shipping_payment; ?>"><?php echo $text_shipping; ?></a> При попытке перейти по ссылке открывает страницу с ошибкой Код: Fatal error: Class 'Controllerinformationshippingpayment' not found in /home/host1426479/knit-kuk.ru/htdocs/www/system/engine/action.php on line 43
Банально не хватает внимательности Разбираем из чего состоит. из class ControllerInformationContact extends Controller { controller\information\contact.php то что синим то и пропустили
@Vlad , премного благодарен! Честно говоря я и не знал о таком нюансе... Теперь буду знать! Всё заработало!