【发布时间】:2011-05-15 08:49:19
【问题描述】:
您好,我在这样的模块品牌中构建了一个索引控制器
class Blank_Brand_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
echo 'Foo Index Action';
$this->addaction();
}
public function addAction()
{
echo 'Foo add Action';
$this->deleteAction();
}
}
当我输入地址时:http://www.myshop.com/index.php/brand/,它与 Foo Index Action 相呼应
但是,对于这个 URL,它什么都不做:http://www.myshop.com/index.php/brand/add
这里可能是什么问题导致了这种情况?这可以为我节省很多在 Magento 中重写 URL 时遇到的问题!
【问题讨论】:
标签: php zend-framework magento