FuelPHP v1.7.2 Release Notes
-
🛠 Important fixes, changes, notes. Read them carefully.
Viewmodel
🗄 As of 1.7.2, the Viewmodel class is deprecated, and replaced by the Presenter class. Functionality has remained largely the same, and a Viewmodel alias is present to maintain backward compatibility.
It has proven difficult to explain what a Viewmodel is and does, and why you should use it. Also having a classes/view and a views folder was very confusing for a lot of people. It is also a step closer to Fuel v2, there this class is also called Presenter.
Backward compatibility notes
Request_Curl
0️⃣ As a result of the security issue mentioned below, the auto-format of the response in the
Request_Curl
class is now disabled by default, as it is possible for a malicious site to construct a response of a specific reponse type that can lead to code execution. This means that if you useRequest_Curl
, you have to either enable this manually in your code (ONLY if you absolutely trust the site you connect to!), or add code to validate the response before you process it.Validation
The validation rule
required
rule no longer treats an input valuefalse
as a value, so passing this value will now trigger a validation error.Database
The PDO driver now returns the error code of the underlying database driver back as the error code in the
Database_Exception
, instead of the PDO error code. This allows you to act on specific platform errors.↪ It also means you loose access to the original generic PDO error code, which you can work around by retrieving the current PDO database connection (through the
connection()
method on the database object) and call PDO'serrorCode()
method to retrieve the original generic PDO error code.