Welcome Guest, Not a member yet? Register   Sign In
Load view every pages
#1

I want to get some suggestions. I have a view like this:
________master_view.php
PHP Code:
<head>
//...
[FILE VIEW 1 with variable - for every pages]
//...
</head>
<
body>
//...
[FILE VIEW 2 with variable - for every pages]
//...
</body
And controller (i just need to write)
_______ test::index_view

PHP Code:
return view(FILE VIEW 2$data
then where should i process FILE VIEW 1 (Filter, View cells, View layout... or somewhere?)
Reply
#2

See https://codeigniter4.github.io/userguide...cells.html
View cell as function with template render
Reply




Theme © iAndrew 2016 - Forum software by © MyBB