Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Norbertino

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

385 profile views

Norbertino's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Спасибо. Правильное название было в самой ошибке. не знал что название класса зависит от месторасположения контроллера. Controllernewspagenewspage Тему можно закрывать.
  2. Здравствуйте. Прошу помощи знатоков. Создал новую схему в 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); Подскажите пожалуйста, как мне корректно добавить класс контроллера?
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.