Welcome Guest, Not a member yet? Register   Sign In
I have few questions...
#6

[eluser]TheFuzzy0ne[/eluser]
Yes, although it's not quite as easy. Just put your callback into a helper, model, library or whereever else you want, and then you can simply reference that call back from your controller with an alias.

Code:
function _my_callback($str="")
{
    return $this->my_validation_model->my_callback($str);
}

I think you can also access it in a model/library directly by defining you're rule something like this:
Code:
...
'rules' => 'callback_my_model->some_method',
...


Messages In This Thread
I have few questions... - by El Forum - 06-20-2009, 03:21 AM
I have few questions... - by El Forum - 06-20-2009, 04:11 AM
I have few questions... - by El Forum - 06-20-2009, 08:53 PM
I have few questions... - by El Forum - 06-21-2009, 05:36 AM
I have few questions... - by El Forum - 06-21-2009, 07:01 AM
I have few questions... - by El Forum - 06-21-2009, 07:12 AM
I have few questions... - by El Forum - 06-21-2009, 07:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB