Browse Source

reverted deletion of Theme::getPath()

tags/2.0.0-beta
Dmitry Erofeev 11 years ago
parent
commit
ac0a56e9d0
  1. 11
      framework/base/Theme.php

11
framework/base/Theme.php

@ -171,4 +171,15 @@ class Theme extends Component
throw new InvalidConfigException('The "baseUrl" property must be set.');
}
}
/**
* Converts a relative file path into an absolute one using [[basePath]].
* @param string $path the relative file path to be converted.
* @return string the absolute file path
*/
public function getPath($path)
{
return $this->getBasePath() . DIRECTORY_SEPARATOR . ltrim($path, '/\\');
}
}

Loading…
Cancel
Save