Problems with Internet Explorer and application/json

Posted by Eric Bartels

My current project based on Symfony and YUI was developed using Firefox (and its great plugin Firebug) and Safari. It made heavy use of JSON. My Symfony action looked like public function executeSomething () { $this->getResponse ()->setHttpHeader (’Content-Type’, ‘application/json’); // … Do something return $this->renderText ($myJsonCode); } Nothing spectacular. This code works with Opera, Firefox [...]

Performance increase when using case-insensitive queries with Symfony, Propel and PostgreSQL

Posted by Eric Bartels

Symfony makes heavy use of Propel. Propel finds objects in the storage container using criteria. If you want to let Propel (okay the database) ignore the case you can set this in the criteria. $c = new Criteria ();   // Allow case sensitive searches $c->setIgnoreCase (true);   // Find all posts which name contains [...]

Benutzung von Slashes in Parametern innerhalb der URL

Posted by Eric Bartels

Wenn man versucht innerhalb des QueryStrings einen Slash in einem Parameter (?param=0815/123) zu verwenden (z. B. für Artikelnummern aus TecDoc), dann bekommt man beim Aufruf einer solchen URL einen 404-Fehler. Zunächst verdächtigte ich das Routing in Symfony. Die Ursache liegt jedoch im Apache-Webserver … Die Lösung des Problems ist recht simpel. Einfach die AllowEncodedSlashes – [...]