Example #1
0
 /**
  * Constructor hook method.
  *
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $_config = ['redirect' => ['action' => 'index'], 'messages' => ['noAction' => __d('union', 'Action not found.'), 'noChose' => __d('union', 'Please choose only one item for this operation')]];
     $config = Hash::merge($_config, $config);
     $this->config($config);
 }