Welcome Guest, Not a member yet? Register   Sign In
Problem when moving myweb to web server
#5

[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
&lt;?php echo validation_errors(); ?&gt; using the form helper class.

Do I have to customize that if I am extending the Form_Validation class.

Thank you in advanced.


Messages In This Thread
Problem when moving myweb to web server - by El Forum - 08-24-2009, 09:41 PM
Problem when moving myweb to web server - by El Forum - 08-25-2009, 03:15 AM
Problem when moving myweb to web server - by El Forum - 08-25-2009, 03:16 AM
Problem when moving myweb to web server - by El Forum - 08-25-2009, 04:07 AM
Problem when moving myweb to web server - by El Forum - 08-26-2009, 11:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB