Wednesday, December 28, 2011

Re: Form validation error doesn't show! CPHP 1.3

OK, I found the problem I was using this function some how this
function disables errors. please help..


function _refreshAuth($field = '', $value = '') {
if (!empty($field) && !empty($value)) {
$this->Session->write($this->Auth->sessionKey .'.'. $field,
$value);
} else {
if (isset($this->User)) {
$this->Auth->login($this->User->read(false, $this->Auth-
>user('id')));
} else {
$this->Auth->login(ClassRegistry::init('User')->findById($this-
>Auth->user('id')));
}
}
}

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: