Welcome Guest, Not a member yet? Register   Sign In
I use CI setting library a lot but i miss one thing !!!
#2
Wink 

Hi, I use CI setting library too and I think I know what you mean. You want to access the array elements by using dot notation, right? Like this:

PHP Code:
echo service('settings')->get('App.siteName.titleone'); // prints 'My Great Site'

Unfortunately, I don't think the library supports this feature yet. You have to use the array index instead, like this:

PHP Code:
echo service('settings')->get('App.siteName')[0]; // prints 'My Great Site'

Hope this helps!
Reply


Messages In This Thread
RE: I use CI setting library a lot but i miss one thing !!! - by Ruzick - 02-15-2024, 05:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB