I guess I'm making some newbie mistake here but I can't find whats wrong. I have a model to which I wanted to add static method...
<?php
use Phalcon\Mvc\Model,
Phalcon\Mvc\Model\Message,
Phalcon\Mvc\Model\Validator\InclusionIn,
Phalcon\Mvc\Model\Validator\Uniqueness;
class Venues extends Model {
public function getSource() {
return "t_venue";
}
public static function geoFind($lat1, $long1, $lat2, $long2) {
........
return $res;
}
}
Now when I try to call Venues::geoFind method i get message: "Caught exception: The static method "geoFind" doesn't exist on model "Venues". What am I doing wrong?