Exemplo n.º 1
0
 function path($name, $file = '')
 {
     self::$name = $name;
     $path = iCMS_PLUGINS_PATH . '/' . $name . '/';
     $file && ($filepath = $path . $file);
     if (file_exists($filepath)) {
         return $filepath;
     }
     return empty($file) ? $path : false;
 }