[eluser]Nisha S.[/eluser]
Thanks to every one helped me in this. I think the problem occurred while transferring the file through my ftp client. Transferred again and working.
I am having another problem now. Please help me on this also if anyone encountered this already.
I am extending validation class.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Validation extends CI_Form_validation {
function MY_Validation()
{
parent::CI_Form_validation();
}
public function isUsername($uname)
{
if (!preg_match('/^[a-zA-Z0-9_-]+$/',$uname))
{
$this->set_message('isUsername', 'Username can have only alphabets, hipen and dots.');
return FALSE;
}
if (strlen($uname) < 5){
$this->set_message('isUsername', 'Username should have more than 4 letters.');
return FALSE;
}
return TRUE;
}
that goes like that...
Validation all works fine. but the problem is there is no message is displayed in the form when I use the method
<?php echo validation_errors(); ?> using the form helper class.
Do I have to customize that if I am extending the Form_Validation class.
Thank you in advanced.