Back to Browse

#11 Passing data to views | Data Iteration in views | CodeIgniter 4 Tutorials

17.1K views
Jun 26, 2020
16:38

- We know that, A view is always responsible for displaying the data. - A view Always knows how to display the data beautifully, but it does not know what to display - By default a view will never get the data directly from database. - By using controllers, we can pass data to views - Data is passed from the controller to the view by way of an array in the second parameter of the view function. echo view(" view_name ",$data)

Download

1 formats

Video Formats

360pmp423.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

#11 Passing data to views | Data Iteration in views | CodeIgniter 4 Tutorials | NatokHD