I want this
$this->$model_name->findByProgram_id($id)
to be executed something like this
$this->$model_name->findBy.$field_id($id)
where $field_id = 'program_id
and $id
is the actual field value.
This is required for dynamically calling function. Will it be possible or i should process with hard-coded field name.
Hope this will make sense!!! thanks inn advance