diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index e836bc8..00b3ca8 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -3,6 +3,12 @@ use phpOMS\Router\RouteVerb; return [ + '^.*/backend/profile.*$' => [ + [ + 'dest' => '\Modules\Profile\Controller:setupProfileStyles', + 'verb' => RouteVerb::GET, + ], + ], '^.*/backend/profile/list.*$' => [ [ 'dest' => '\Modules\Profile\Controller:viewProfileList', diff --git a/Controller.php b/Controller.php index ef3298d..e07dd7d 100644 --- a/Controller.php +++ b/Controller.php @@ -76,6 +76,13 @@ class Controller extends ModuleAbstract implements WebInterface protected static $dependencies = [ ]; + public function setupProfileStyles(RequestAbstract $request, ResponseAbstract $response, $data = null) + { + /** @var Head $head */ + $head = $response->get('Content')->getData('head'); + $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Profile/Theme/Backend/css/styles.css'); + } + /** * @param RequestAbstract $request Request * @param ResponseAbstract $response Response diff --git a/Theme/Backend/css/styles.scss b/Theme/Backend/css/styles.scss new file mode 100644 index 0000000..e69de29