cakephp/cakephp — pull request #3476 by dereuromark (2014-05-13 00:29:11+00:00)
Title: 2.6 maxlength

Add textarea maxlength support.
Resolves https://github.com/cakephp/cakephp/issues/2137

While adding it I stumbled upon a buggy behavior in the current implementation of maxlength.
It is skipped, once "type" is passed manually - which it shouldn't.
If you have a username field (varchar 100), this would add the maxlength attribute

$this->Form->input('username');

While this would not:

$this->Form->input('username', array('type' => 'text'));

Both should be treated equally, though.

This resolves this, as well.