How to Access Config File Variables Globally in all Views ? |
How to access config file variables Globally in all views without passing it from controller?
i have a config file : app/config/SiteConfig.php PHP Code: <?php namespace Config; Now am passing it from controller like this PHP Code: <?php Is there any better way to accomplish this without passing it from every controller methods? |
Messages In This Thread |
How to Access Config File Variables Globally in all Views ? - by midhunlalkc - 11-27-2019, 02:43 AM
RE: How to Access Config File Variables Globally in all Views ? - by MGatner - 11-27-2019, 04:52 AM
RE: How to Access Config File Variables Globally in all Views ? - by midhunlalkc - 11-27-2019, 07:33 AM
RE: How to Access Config File Variables Globally in all Views ? - by Lauren - 04-05-2020, 11:43 PM
|