CakePHP 2.x - 禁用特定控制器操作的转换行为
CakePHP 2.x - Disable translation behavior on specific controller's action
我想知道是否有一种方法可以禁用某些控制器操作的翻译行为。
谢谢
示例:
public function edit($id = null)
{
$this->Category->Behaviors->unload('Translate');
}
http://book.cakephp.org/2.0/en/models/behaviors.html#using-behaviors
我想知道是否有一种方法可以禁用某些控制器操作的翻译行为。
谢谢
示例:
public function edit($id = null)
{
$this->Category->Behaviors->unload('Translate');
}
http://book.cakephp.org/2.0/en/models/behaviors.html#using-behaviors