Making data available in ALL views |
You can create class for such use can also be and Entity and then add a service which will return it as singleton. Much better solution that having it as helper method as the loading of data will happen only once. Then you can use it in view like this
PHP Code: <?= service('siteinfo')->leads ?> |
Welcome Guest, Not a member yet? Register Sign In |