updated things
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
This commit is contained in:
parent
0ed8ab9137
commit
eca5c5eab7
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -2,7 +2,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Launch built-in server",
|
"name": "Xdebug server",
|
||||||
"type": "php",
|
"type": "php",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
|
16
README.md
16
README.md
@ -27,6 +27,22 @@ Im Terminal dann Webserver starten
|
|||||||
2. `php -S localhost:8080`
|
2. `php -S localhost:8080`
|
||||||
3. Browser auf http://localhost:8080 öffnen
|
3. Browser auf http://localhost:8080 öffnen
|
||||||
|
|
||||||
|
## oder mit Xdebug
|
||||||
|
|
||||||
|
0. php server vom vorherigen schritt darf nicht laufen
|
||||||
|
1. xdebug installieren (`sudo apt install php-xdebug` oder `sudo apk add php82-pecl-xdebug`)
|
||||||
|
2. So oder so ähnlich muss die config aussehen `/etc/php82/conf.d/50_xdebug.ini`
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[Xdebug]
|
||||||
|
zend_extension=xdebug
|
||||||
|
xdebug.mode=debug,develop
|
||||||
|
xdebug.client_host=host.docker.internal
|
||||||
|
xdebug.client_port=5902 #same port as in launch.json
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Dann im VScode auf debugging -> Grünen pfeil `Xdebug server` drücken
|
||||||
|
|
||||||
## Ordnerstruktur
|
## Ordnerstruktur
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -60,49 +60,3 @@
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<figure class="table-responsive">
|
|
||||||
<table class="table" role="grid">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
Login
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Edit
|
|
||||||
</th>
|
|
||||||
<?php foreach (array_keys($userdata[0]) as $key) : ?>
|
|
||||||
<th>
|
|
||||||
<?= $key ?>
|
|
||||||
</th>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach ($userdata as $user) : ?>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<button name="email" value="<?= $user['email'] ?>" hx-post="/admin/loginas/">Login</button>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<button name="email" value="<?= $user['email'] ?>" hx-post="/admin/edituser/" hx-target="#main">Edit</button>
|
|
||||||
</td>
|
|
||||||
<?php foreach (array_keys($user) as $key) : ?>
|
|
||||||
<td class="px-6 py-4 text-sm text-gray-500">
|
|
||||||
<?= is_array($user[$key])?json_encode($user[$key]):$user[$key] ?>
|
|
||||||
</td>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</figure> -->
|
|
Reference in New Issue
Block a user