// Generate a global variable for the website root $fullpath = config::get('base_url'); $replace = 'public/'; $newpath = ''; View::set_global('base_path', str_replace($replace, $newpath, $fullpath));Am I missing something, or does Fuel not have a base url built in? I don't want the unix path, because I would like the root url of the frontend, i.e. http://www.mysite.com/cms. If anyone knows of a better method, let me know. Thanks!
Paul Boco wrote on Saturday 14th of May 2011:I usually do this...Uri::create('');
Uri::create('');
Jelmer Schreuder wrote on Sunday 15th of May 2011:In the develop branch there a method Uri::base() that does pretty much the same as Uri::create('')
It looks like you're new here. If you want to get involved, click one of these buttons!