Exemple #1
0
 /**
  * @before _secure
  * @after _displayData
  */
 public function ad($id)
 {
     $this->seo(array("title" => "AD Report"));
     $view = $this->getActionView();
     $ad = \Ad::first(['org_id = ?' => $this->org->_id, 'id = ?' => $id]);
     $count = Db::count(['created' => Db::dateQuery($this->start, $this->end), 'adid' => $ad->_id, 'is_bot' => false]);
     $view->set('ad', $ad)->set('clicks', $count);
 }