Welcome Guest, Not a member yet? Register   Sign In
controler function question
#5

[eluser]quasiperfect[/eluser]
that's what i want but if i use _ before the function name then the function doesn't get called

example normal use but the problem with enyone can call the controller/field_check url
Code:
$this->form_validation->set_rules('field', 'Field name', 'callback_field_check');
function field_check($str){
blah blah
}

like u said the function doesn't get called
Code:
$this->form_validation->set_rules('field', 'Field name', 'callback_field_check');
function _field_check($str){
blah blah
}

if i modify the code like this it works but we have to modify everything with a _ and for a big site that's not something i would love to do any other solution available ?
Code:
$this->form_validation->set_rules('field', 'Field name', 'callback__field_check');
function _field_check($str){
blah blah
$this->form_validation->set_message('_field_check', 'error mesage');
}


Messages In This Thread
controler function question - by El Forum - 10-29-2008, 06:55 AM
controler function question - by El Forum - 10-29-2008, 08:17 AM
controler function question - by El Forum - 10-29-2008, 09:57 AM
controler function question - by El Forum - 10-29-2008, 11:32 AM
controler function question - by El Forum - 10-29-2008, 12:03 PM
controler function question - by El Forum - 10-29-2008, 01:20 PM
controler function question - by El Forum - 10-29-2008, 02:43 PM
controler function question - by El Forum - 10-30-2008, 03:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB