Welcome Guest, Not a member yet? Register   Sign In
How to load personal config file in BaseController and have it available everywhere
#4

(This post was last modified: 02-10-2022, 09:15 AM by ikesela.)

you need too pass config data to view

example

view('app/view/file',[ 'config' => $this->myconfig])


so can call in view: $config->myconfig->ada_site_name

controller and view are two different thing.
Reply


Messages In This Thread
RE: How to load personal config file in BaseController and have it available everywhere - by ikesela - 02-10-2022, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB