Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP Reihenfolge von Aufrufen

Empfohlene Antworten

Hallo Community,

ich steh gerad irgendwie auf dem Schlauch. Könnte am Freitag liegen ^^ Folgendes Problem stellt sich mir:

Ich hab eine statistische Methode HTML::showBox($title, $inhalt). Diese Methode macht nix anderes als ne div Box anzulegen mit nem Titel und gewissen Inhalt. Ein stark vereinfachtes BSP zur Erklärung:

<div class='box'>

<div clatt='title'> $title </div>

$inhalt

</div>

So jetzt Ruf ich die Box so auf:

$NEWS = new News();

HTML::showBox ("überschrift", $NEWS->printNews() );

Dummerweise macht er nun folgendes, er schreibt erst den Inhalt der News und unten drunter dann erst den Div Container. Ruf ich das Skript mit

HTML::showBox("überschrift", DOCUMENT_ROOT."/scripts/news/blub.php");

und erstell in der blub.php das Objekt der Klasse und den Methodenaufruf, ist alles kein Problem. Ich hab aber keine Lust für jede Methode eine extra Datei anzu legen jmd eine Idee?

LG

Ich sags ja Freitag xD, statt in meiner News Klasse das ganze zeug rauszuschreiben einfach in eine Variabel abgelegt und mit return zurück. Und so klappts dann auch mit der Nachbarin xD

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.