getPublicAssetsPath() 공개 정적인 메소드

Get the public assets
public static getPublicAssetsPath ( ) : string
리턴 string
예제 #1
0
파일: View.php 프로젝트: voodoophp/voodoo
 /**
  * To create the shared assets dir
  * Base on the config file
  * @return string
  */
 private function getPublicAssetsDir()
 {
     $path = $this->controller->getConfig("views.publicAssetsDir");
     // Shared assets is from URL
     if (preg_match("/^http(s)?:\\/\\//", $path)) {
         return $path;
     }
     // Shared assets starts from the root
     return $this->controller->getSiteUrl() . "/" . preg_replace("/^\\//", "", str_replace(Env::getFrontControllerPath(), "", $path ?: Env::getPublicAssetsPath()));
 }