Loading…

How to pass multiple parameters to access into the view files?

We can use $this->set(compact()) to pass multiple parameters to access into the view file.

Example

                                        

$this->set(compact('variable1','variable2','variable3'));

Suggest An Answer

No suggestions avaliable!

Latest post from CakePHP interview questions

Ask Question