Kategorie: Laminas Zend Framework 2 & 3

ZF2 merged configuration prevent duplicate

Bei der Skeleton Application ist die System Konfiguration in /config/application.config.php. Und dort unter dem Key module_listener_options steht so etwas: Also, ZF2 überschreibt/merged die Modulkonfiguration mit denen in config/autoload/. Priorität hat global über Modul und local über global. Ist ein Array Value(s) in der config ein Null indiziertes Array, werden die Values, falls doppelt, NICHT in […]

ZF2: Attempting to quote a value without specific driver level support can introduce security vulnerabilities in a production environment

Try this for debugging SQL queries throws a Notice: Attempting to quote a value without specific driver level support can introduce security vulnerabilities in a production environment. To get also (not only remove the notice) a correct SQL query: For Platform MySQL it makes not correct query. An integer from SQL query LIMIT part give […]

ZF2 Apache Alias und Virtual Host

Zuerst benötigt man in der /etc/hosts so etwas:\r\n\r\n\r\nDann in /etc/apache2/sites-available eine Datei mit folgendem Inhalt:\r\n\r\nMan beachte, daß als Directory das /public Verzeichnis der ZF2 App angegeben ist. Denn dort befindet sich die index.php.\r\nAuf diese Datei setzt man mit root Rechten einen symbolischen Link in /etc/apache2/sites-enabled.\r\n\r\nDas war es um den Apache für eine ZF2 App zu […]