/** * Helper - Safely add assets to your theme * * @param string * @return string */ public static function assets($path) { $di = new self(); $theme = $di->getDI()->getConfig()->theme; return '/content/themes/' . $theme . '/assets/' . $path; }