I’m using CakePHP 4 and cakepdf to generate pdf since it is compatible with CakePHP 4. However, I got error when loading the view. the public function view is as follows:
The _serialize , _jsonOptions and _jsonp special view variables of JsonView are now deprecated. Instead you should use viewBuilder()->setOption($optionName, $optionValue) to set these options.
It’ll be because you’re passing a string where it should be an integer. It’s hard for us to guess where. It should tell you a specific file and line number, go look at that code and see what it’s trying to reference there.