Example #1
0
 /**
  * Url'i oluşturur
  *
  * @param string $file
  * @return mixed
  */
 public function getUrl($file = '')
 {
     $version = $this->manager->getVersion();
     $pattern = $this->manager->getPattern();
     /** Search Params
      *  %f => $file
      *  %v => $version
      */
     $f = str_replace('%f', $file, $pattern);
     $v = str_replace('%v', $version, $f);
     return $this->getUrlString() . $v;
 }
Example #2
0
 /**
  * Url'i oluşturur
  *
  * @param string $file
  * @return mixed
  */
 public function getUrl($file = '')
 {
     return $this->manager->getUrl($file, $this->getPrefix());
 }