Tuesday, February 15, 2022

[FIXED] What is CakePHP $request->params['bare']?

Issue

I know the origin and use of other params in the request object but what is $request->params['bare']use for and when is it set? .when debugging with DebugKit, I like to use request panel to inspect the entire request object and sometimes encounter it set.


Solution

It's a parameter typically only used internally with RequestActionTrait (which is deprecated as of CakePHP 3.3.0, you should use View Cells instead).

When true-ish, the controller will disable autoLayout for rendering, ie no layout is being rendered, only the corresponding template of the requested action is.

See also



Answered By - ndm

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.