我的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再次 –