Parable PHP Framework 0.12.7
Pre-release
Pre-release
Parable PHP Framework Changelog
This marks the 66th release of Parable. This project is now in every way the longest-running, actively developed and biggest-in-scope project I've ever developed, especially with the code (warts and all) visible to everyone. And I'm far from done.
Many thanks to @jerry1970, @dmvdbrugge and @FaaPz for all their feedback, issues and PRs. You guys are helping me make something great here 😁
So now we move on to the changelog for 0.12.6 & 0.12.7.
Note: The small, release-less updates such as 0.12.6 usually don't get their own release because the changes are usually too small to really make a difference to anyone. If they fix reported issues, there'll always be a release.
0.12.7
Changes
\Parable\Http\Output\Json
has better error checking inprepare()
, doing its best to make sure the content ends up as json. If it can't it'll throw an exception. This fixes issue #18.\Parable\Http\Request
has received some love:getHeader($key)
now also matches on different capitalisation, to make matching easier.getCurrentUrl()
was added, which builds the current url from$_SERVER
data.getHttpHost()
was added, which does its best to return the most reliable value.getRequestUrl()
was added.getScriptName()
was added.getBody()
was added, returning the value ofphp://input
passed to the request.
ORM\Database
has gainedsetCharset()
andgetCharset()
, so it's now possible to specifically set it. This will also be picked up from the config (keydatabase.charset
). This fixes issue #19. Fixed by @jerry1970.
Bugfixes
\Parable\GetSet\BaseInput
now auto-detects whether data is json or form-data and attempts to load it both ways. PHP doesn't care whether it'sx-www-form-urlencoded
or passed in the body, so it's all about what the data is.\Parable\Model\ORM
was using the literal propertyid
to check for a primary key. Now uses$this->getTableKey()
instead.\Parable\Routing\Route
didn'trtrim
the / off of the urls. This made matchingurl
withurl/
impossible.
0.12.6
Changes
\Parable\Framework\Toolkit::redirectToRoute()
now also accepts a$parameters
array, to build route Urls with params like\Parable\Routing\Router::getRouteUrlByName()
does.
Bugfixes
Init\Example
(structure file) did not yet use or explain the use ofHOOK_x
constants on\Parable\Framework\App
.