cakephp/cakephp — pull request #1405 by jippi (2013-07-06 17:00:43+00:00)
Title: allow serialize in json and xml alias

if `_serialize` is an array `array('items', 'success')` it's expected that the viewVars exist with these names.

It's may not always be desired to use the name set in the controller as the outgoing variable name.

If you use `array('data' => 'items', 'went_ok' => 'success');` you can change the outgoing serialize value.

This may be an edge case feature, but for plugins like my Crud plugin it's very nice, and allow the system to much more flexible.

The format is `name_in_view` => `name_used_in_controller::set`