Cześć,
to mój pierwszy post, więc proszę o wyrozumiałość Aby stworzyć nową podstronę utworzyłem plik HtoConfirmationController.php w controllers/front, dodałem stronę przez panel admina w sekcji URL and SEO, przy opcji 'strona' wybralem 'htoconfirmation' z listy, wpisałem url, utworzyłem również hto-confirmation.tpl w theme/tpl i przy wejściu w 'baseUri/hto-confirmation' pokazuje mi się błąd:
Fatal error: Class 'HtoConfirmationController' not found in /www/classes/controller/Controller.php on line 131
reszta strony działa normalnie.
niestety nie znalazłem nic na stackoverflow co rozwiązałoby mój problem.
<?php
class HtoConfirmationControllerCore extends FrontController
{
public $php_self = 'hto-confirmation';
/**
* Initialize order confirmation controller
* @see FrontController::init()
*/
public function init()
{
parent::init();
}
/**
* Assign template vars related to page content
* @see FrontController::initContent()
*/
public function initContent()
{
parent::initContent();
$this->setTemplate(_PS_THEME_DIR_.'hto-confirmation.tpl');
}
}