我想删除交易控制器的所有操作的交易/交易:
http://example.com/deal/deals/voucher/dsfsdfdf应为http://example.com/voucher/cPH5aGr1
等
答案 0 :(得分:0)
您应该在app / config / routes.php
中定义路线Router::connect('/voucher/*', array('controller' => 'Deals', 'action' => 'voucher', 'plugin' => 'Deal'));