what is the use of $this->set(compact());?
Answer / Saurabh Shukla
$this->set(compact()) is a shorthand method in CakePHP for passing an associative array to your view. It automatically converts any object or array variables into their string representation.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to set layout in the controller?
List different type of cache cakephp supports?
How to create a cakephp project using composer?
How can you include a javascript menu throughout the site. Give steps.
Using cakephp, what all are drawbacks?
How to use session in cakephp?
List some database related functions in cakephp.
How to read, write and delete session in cakephp?
How to display the schema of the model?
What is composer in cakephp?
Which is better cakephp or laravel?
What is the first file that gets loaded when you run a application using cakephp?can you change that file?