Benutzer:Samson1964/URL's generieren

Aus Contao Community Documentation

Für eigene Erweiterungen stellt der Core folgende Funktionen zur Verfügung:

Funktion addToUrl

Als aktuelle Seite wird in allen Beispielen eine Seite mit dem Alias test angenommen.

Variante 1

$this->addToUrl('foo=bar');

Vor Contao 3.2.8 war das Ergebnis: test.html?foo=bar
Seit Contao 3.2.8 ist das Ergebnis: test/foo/bar.html
Siehe dazu auch github.com/contao/core/issues/6736.

Die bessere Schreibweise ab Contao 3.5 ist

\Frontend::addToUrl('foo=bar');
Ansichten
Meine Werkzeuge

Contao Community Documentation

God: "what is your job?"
me: "i am a software developer ... i develop websites with Contao 3"
God: "sounds cool, what are you working on today? Web sockets? Ajax? HTML5 video streaming?"
me: "no, i am trying to send an email ...."

Leo Unglaub
Navigation
Verstehen
Verwenden
Entwickeln
Verschiedenes
Werkzeuge