我的Prestashop出現問題,我想在不使用CMS的情況下在模塊中創建網頁。模塊控制器重定向到404 Prestashop
但是,當我想用這個URL來訪問控制:http://example.com/comparateur/module/ProduitsMarchand/ProductList
我有一個消息&當我點擊,我有一個404錯誤
[Debug] This page has moved
Please use the following URL instead: http://example.com/comparateur/index.php?controller=ProductList&module=ProduitsMarchand
我的控制器看起來像這
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");
}
}
首選項> SEO &網址
Page: produitsmarchands - productlist
URL: product-list
它仍然沒有工作,我已經編輯我的第一篇文章,所以你可以看到我的變化。 –
http://mydomain.com/comparateur/product-list,試試這種方式 – user2831723
相同的消息「此頁面已移動」,404再次 –