Settings router.
Here's a simple settings router. the createOrUpdate method lives in the model, and by default all models will return true on save or false if save went wrong.
This commit is contained in:
@ -143,7 +143,7 @@ abstract class ValidModel extends \Model
|
||||
protected function doValidationError($context)
|
||||
{
|
||||
if ($context == $this->_validationOptions['throw'])
|
||||
throw new \ValidationException($this->_validationErrors);
|
||||
throw new \Sudzy\ValidationException($this->_validationErrors);
|
||||
}
|
||||
|
||||
protected function addValidationError($msg, $field = null)
|
||||
|
Reference in New Issue
Block a user