PHP – How to open a PHP page with relevant data from a PHP function?

  codeigniter, laravel, php

I have worked on a few projects based on CodeIgniter and Laravel. A few features surprise me how they actually work, one of them is handling view pages using function/method.

As you all know, in CI 3.x $this->load->view() handle this task and in Lara view() this task, but my question is how they actually work? I mean how those functions exactly load or redirect to the target PHP page with the data provided.

Does anyone know?

Source: Laravel

Leave a Reply