Versteckt im Cake Controller gibt es eine nützliche Pfadfunktion, $this->base. Funktion: URL Pfad: http://example.com/cake_app/test/index Datei: controllers/tests_controller.php <?php //Im Controller function index() { echo $this->base } //Ausgabe: /cake_app ?> Dürfte sich als nützlich erweisen.
Kategorie CakePHP, Tipps | 2 Kommentare »
