Welcome Guest, Not a member yet? Register   Sign In
Base_url as a default value in a custom Config file
#2

I don't know why you have this error. A workaround would be to define your config like this:
PHP Code:
class MyConfig extends BaseConfig
{
    public $myTargetLink '/path/to/link';


Then when you need it use base_url() like this:
PHP Code:
$myConfig config('MyConfig');
echo 
base_url($myConfig->myTargetLink); 
Reply


Messages In This Thread
RE: Base_url as a default value in a custom Config file - by includebeer - 10-16-2021, 02:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB