returning views as a data |
(02-26-2020, 02:38 PM)dp41646 Wrote: Hi! In CI4 views are actually returning data, so you could do this in controller: PHP Code: $pageContent = $view->render('myview'); //now $pageContent has rendered HTML page Also you might find interesting new feature ViewCells, it works same way: https://codeigniter4.github.io/userguide...cells.html |
Messages In This Thread |
returning views as a data - by dp41646 - 02-26-2020, 02:38 PM
RE: returning views as a data - by zahhar - 02-27-2020, 06:57 AM
|