public function data()
{
if($old != $status || $prev_lat != $lat || $prev_long != $long)
{
if($status == 'Village' || 'Unknown')
{
exec_query();
}
else if($status == 'Town' || 'City')
{
exec_query();
}
}
}
public function exec_query()
{
//Some data;
}
但是每当我调用此函数时,我都会收到如下错误:-
Call to undefined function exec_query()
谁能告诉我在 cakephp 中调用函数