Skip to content

Commit

Permalink
Move templates out of src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 21, 2020
1 parent ea8f7e9 commit c43178f
Show file tree
Hide file tree
Showing 21 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
!/config/
!/external/
!/src/
!/templates/
!/vendor/
!/webroot/
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ RUN composer install $COMPOSER_FLAGS --no-scripts --no-autoloader
# copy rest of the project. copy in order that is least to most changed
COPY --from=source /app/webroot ./webroot
COPY --from=source /app/external ./external
COPY --from=source /app/templates ./templates
COPY --from=source /app/src ./src
COPY --from=source /app/config ./config

Expand Down
2 changes: 1 addition & 1 deletion src/Xhgui/ServiceContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function _slimApp()
// Configure Twig view for slim
$view = new Twig();

$view->twigTemplateDirs = [dirname(__DIR__) . '/templates'];
$view->twigTemplateDirs = [dirname(__DIR__, 2) . '/templates'];
$view->parserOptions = [
'charset' => 'utf-8',
'cache' => $cacheDir,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c43178f

Please sign in to comment.