Hi all,
With CakePHP 3, i’m trying to save Array to json with setter, but i always get empty value.
My form inputs :
$this->Form->input('tag[1]');
$this->Form->input('tag[2]');
My Setter :
function _setTag($tag) {
// debug($tag); <- Return always empty value
return json_encode($tag);
}
Someone can help me ?
Thanks !