Welcome Guest, Not a member yet? Register   Sign In
viewDirectory in config Paths
#3

The current Config is too liberal and also degrades the performance of CI4.
I recommend all devs not change the Config values at runtime.
Then, you will be able to use Config caching in the future to get performance gain.

In this case, you can pass $viewPath to Services::renderer().
See https://github.com/codeigniter4/CodeIgni...#L477-L487

Or you could create your own Services::renderer() with the code in the previous version.
Reply


Messages In This Thread
viewDirectory in config Paths - by p.mancini - 08-12-2023, 12:58 AM
RE: viewDirectory in config Paths - by shortcode - 08-12-2023, 01:34 PM
RE: viewDirectory in config Paths - by kenjis - 08-13-2023, 02:45 PM
RE: viewDirectory in config Paths - by p.mancini - 08-16-2023, 09:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB