Hi
$this->getEncounterInfo($value)
here $this refers to your current action class object
not the EyePhysicalExamination class object
you should call this method on the object of EyePhysicalExamination instead
of $this
or
if you don't want to call this on an object then define this function in
EyePhysicalExaminationPeer class with static keyword
like
public static function getEncounterInfo($value)
{
//your coding here
}
On Thu, Dec 24, 2009 at 4:07 AM, mirfan <[email protected]> wrote:
> i have define a function getEncounterInfo($value){} in model of
> EyePhysicalExamination.php now when i am calling it in the following
> way
>
> $this->getEncounterInfo($value) it give the following error
>
> Call to undefined method
> eyePhysicalExaminationActions::getEncounterInfo.
> and when i call it like this
>
> EyePhysicalExamination::getEncounterInfo($pid);
>
> it return the correct value but with this warning
> Strict Standards: Non-static method
> EyePhysicalExamination::getEncounterInfo() should not be called
> statically, assuming $this from incompatible context in /var/www/
> civil_users/apps/frontend/modules/eyePhysicalExamination/actions/
> actions.class.php on line 37
>
>
> how will i call user-defined function from model.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>
--
Regards,
Dheeraj
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.