Answer the question
In order to leave comments, you need to log in
How are variables passed to view in popular Frameworks?
Hello. How are variables passed (better passed) to the view? For example to Codeigniter. $this->load->view('template', $data) but what is hidden there in this view method. How does it load the view and pass parameters. In laravel return view('template', $data) what is hidden behind this? What can be read on this topic or is the only way out is to climb into the source codes of these Frameworks and study?
Answer the question
In order to leave comments, you need to log in
Usually such things are done with extract , most likely in ci as well.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question