Example #1
0
 /**
  * Return the collection path. This
  * is primarily used to determine paths
  * to single assets.
  *
  * @param $collection
  * @return string
  */
 public function getCollectionPath($collection)
 {
     return ($this->request->segment(1) == 'admin' ? 'admin' : 'public') . '/' . ltrim(str_replace(base_path(), '', $this->paths->realPath($collection)), '/\\');
 }