/ Published in: PHP
Expand |
Embed | Plain Text
public function validate() { if ($this->getRequest()->hasErrors()) { return false; } $name = $this->getRequestParameter('name'); $passwd = $this->getRequestParameter('passwd'); $this->getRequest()->setError( 'name', '名前を入力して下さい' ); return false; } $this->getRequest()->setError( 'passwd', 'パスワードを入力して下さい' ); return false; } return true; } public function handleError() { return $this->forward('auth','loginPage'); }
You need to login to post a comment.
