dp.cx blog

Thoughts from a programmer in (502) - A new post every 214 days!

Slim Framework, Route Groups, and Parameters
Yesterday, I was writing a new sub-endpoint for an API based in Slim Framework. For this API, the routes are kept in separate files for organizational purposes, but also because route groups didn't exist at the time; so I thought I'd give them a shot.

Posted on

Zend Db and non-escaped strings
This is for my own edification in the future, but if you're looking for a non-escaped string as a parameter to a query, it's not Zend\DB\Raw that you're looking for, as that doesn't exist. What you're looking for is new \Zend\Db\Sql\Expression() to handle those raw strings.

Posted on