07-26-2023, 08:01 PM
I have a problem with my Prestashop, i would like to create a webpage in a module without using the CMS.
But when I want to access the controller by using this Url :
I have that message & when i click on the link, i have a 404 error
[Debug] This page has moved
Please use the following URL instead:
My controller looks like this
class ProduitsMarchandProductListModuleFrontController extends ModuleFrontController {
public $php_self ="ProductList";
/**
* Initialize 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("ProductList.tpl");
}
}
Preferences > SEO & URLs
Page: produitsmarchands - productlist
URL: product-list
But when I want to access the controller by using this Url :
[To see links please register here]
I have that message & when i click on the link, i have a 404 error
[Debug] This page has moved
Please use the following URL instead:
[To see links please register here]
My controller looks like this
class ProduitsMarchandProductListModuleFrontController extends ModuleFrontController {
public $php_self ="ProductList";
/**
* Initialize 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("ProductList.tpl");
}
}
Preferences > SEO & URLs
Page: produitsmarchands - productlist
URL: product-list