[英]Redirection in magento
我正在研究自定义模块。 我尝试将我的模块重定向到magento目录类别页面。 该页面的链接是
我试过以下方法但没有成功。
$this->_redirect($this->getUrl("admin/catalog_category/"));
$this->_redirect("admin/catalog_category/");
Magento正在从网址中删除管理员? 最后的网址看起来像那样
HTTP://localhost/project/index.php//catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/
我没弄明白为什么管理员会从我的网址中跳过? 有人可以帮忙吗?
试试下面的代码。
$this->_redirect("adminhtml/catalog_category");
第一个URI(即adminhtml)是模块名称,对于管理区域,模块名称是adminhtml。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.