简体   繁体   中英

CakePHP 2.x - Disable translation behavior on specific controller's action

I would like to know whether there is a way to disable the translation behavior for certain controller's action.

Thanks

Example:

public function edit($id = null)
{
 $this->Category->Behaviors->unload('Translate');
}

http://book.cakephp.org/2.0/en/models/behaviors.html#using-behaviors

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM