CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

Config class, method system_url assumes system folder is inside app folder

Open stefanomozart opened this issue 14 years ago • 1 comments

At line: [code]return $this->slash_item('base_url').end($x).'/';[/code]

the method is mixing things. My system folder, for example, is at server's root, while applications are at separate directories in the same level. Thus, systems 'system_url' cannot be assumed as sub-url of application's 'base_url'.

stefanomozart avatar Apr 27 '12 22:04 stefanomozart

@stefanomozart I would recommend making MY_Config extending CI_Config and write system_url() to your needs.

ckdarby avatar Jun 06 '12 00:06 ckdarby