Skip to content

Commit

Permalink
adjusted restart policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDyze committed Sep 22, 2024
1 parent 845b674 commit 4bdc2a3
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
services:
webapp:
restart: always
build: .
ports:
- "8089:80"
Expand All @@ -16,6 +17,7 @@ services:

db:
image: mysql
restart: always
command: --lower_case_table_names=1
ports:
- "3306:3306"
Expand All @@ -32,6 +34,7 @@ services:

phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- db:db
ports:
Expand Down
15 changes: 15 additions & 0 deletions src/Models/ViewModels/SearchViewModel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Models\ViewModels;

use Interfaces\IViewModel;
use Models\DVDLightModel;
use Models\QueryModel\ManageDVDQueryModel;

class SearchViewModel implements IViewModel{
public array $DVDs;
public int $FilteredCount;
public ManageDVDQueryModel $Query;
public int $TotalPages;
public int $CurrentPage;
}
Empty file added src/Views/Search/SearchView.js
Empty file.
27 changes: 27 additions & 0 deletions src/Views/Search/SearchView.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
namespace Views\Search
{

use Models\ViewModels\DVDViewModel;
use Models\ViewModels\LayoutViewModel;
use Views\BaseView;

class SearchView extends BaseView
{
private SearchViewModel $data;

function __construct(SearchViewModel $viewModel)
{
$this->viewName="Search/SearchView";
$this->subTitle="Search";
$this->data = $viewModel;
}

public function render(): void
{
$layoutData = new LayoutViewModel();
$layoutData -> pageSubTitle = $this->subTitle;
parent::renderLayout($layoutData, $this->data);
}
}
}
Empty file.
Empty file.

0 comments on commit 4bdc2a3

Please sign in to comment.