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