Welcome Guest, Not a member yet? Register   Sign In
How to call libraries in config file
#1
Question 
(This post was last modified: 04-21-2017, 06:56 PM by ardavan.)

Hi,

I've made a general menu array in app_config.php to call it easily anywhere on my controllers.
Now i decided to have multilingual functionality for my app and i cant use $this->lang->line('my_menu_name') in the config file.

PHP Code:
$config['menu'] = array(
 
$this->lang->line('profile') => '/profile',
 
'Settings'          => '/settings',
); 

Is there any way to make this happen? (I can't change the menu array place - should be in app_config.php)

Thanks guys
Reply


Messages In This Thread
How to call libraries in config file - by ardavan - 04-21-2017, 06:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB