lithium\security\auth\adapter\Form::_init()
Overrides
lithium\core\Object::_init()
Initializes values configured in the constructor.
Returns
voidSource
protected function _init() {
parent::_init();
foreach ($this->_fields as $key => $val) {
if (is_int($key)) {
unset($this->_fields[$key]);
$this->_fields[$val] = $val;
}
}
if (!class_exists($model = Libraries::locate('models', $this->_model))) {
throw new ClassNotFoundException("Model class '{$this->_model}' not found.");
}
$this->_model = $model;
}