Hi all
i have a model called "FacebookMeta" how can i use it on plugin?
<?php
use Phalcon\Events\Event,
Phalcon\Mvc\User\Plugin,
Phalcon\Mvc\Dispatcher,
Phalcon\Acl,
Phalcon\Mvc\Url,
Phalcon\Tag,
Phalcon\Mvc\View,
Phalcon\Mvc\Model;
class SetOgMeta extends Plugin
{
public function setOgMeta()
{
$uri = $this->router->getRewriteUri();
$key = 'facebook_meta_'.md5($uri);
if(!$this->ogMeta = $this->redis->get($key)){
$fbMetas = FacebookMeta::findFirst(array("url = '".$uri."'"));
}
}
Fatal error: Class 'FacebookMeta' not found in /var/www/netmoda/app/plugins/SetOgMeta.php on line 134