The scenario is like that
I have a model imr
class Imr extends CActiveRecord{
....
....
}
I need to add my custom method related to this Imr model like this
class Imr extends CActiveRecord{
....
....
public function imrDetails(){
....
....
}
}
but when I am trying to call this function like this
if (isset($_POST['imr_id'])){
$imr = new Imr;
$imr->imr_id = $_POST['imr_id'];
$imr->imrDetails();
}
Giving me this error ( Imr and its behaviors do not have a method or closure named "imrDetails" ).
Please help me to solve it.
Please help me

Help













