Am getting an error while trying to integrate validation in kohana. following are error details
Error message title
ErrorException [ Fatal Error ]: Class 'Validate' not found
APPPATH\classes\Controller\home.php [ 24 ]
19 {
20 $_model = Model::factory('home');
21
22 if ($this->request->method() == HTTP_Request::POST)
23 {
24 $post = Validate::factory($_POST)
25 ->filter(TRUE, 'trim')
26 ->filter('txt_name', 'strtolower')
27
28 ->rule('txt_name', 'not_empty')
29 ->rule('txt_name', 'regex', array('/^[a-z_.]++$/iD'))
Please help me to solve this.