A
A
Alexey Verkhovtsev2017-07-29 11:11:00
PHP
Alexey Verkhovtsev, 2017-07-29 11:11:00

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

1 answer(s)
A
Alexander Talalaev, 2017-07-29
@neuotq

Usually such things are done with extract , most likely in ci as well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question