InterviewSolution
Saved Bookmarks
| 1. |
What Is The Use Of $this->set(compact());? |
|
Answer» Using $this->set(COMPACT()) , we can pass MULTIPLE parameters to ACCESS into the view file. For example, $this->set(compact('posts','users','reports')); Now all these variables will be available in respective view file. Using $this->set(compact()) , we can pass multiple parameters to access into the view file. For example, $this->set(compact('posts','users','reports')); Now all these variables will be available in respective view file. |
|