(06-30-2016, 12:53 AM)jlp Wrote: Without getting hungup on specific names, etc, it sounds like something along the lines of the following might be a good approach. Thoughts? CodeIgniter4?? ... system/helpers/URL.php Code:namespace CodeIgniter\Helpers\URL; function siteURL($uri = '', $protocol = NULL) { return ... } ... application/whatever... Code:use CodeIgniter\Helpers\URL; ... echo URL\siteURL();
namespace CodeIgniter\Helpers\URL; function siteURL($uri = '', $protocol = NULL) { return ... } ...
use CodeIgniter\Helpers\URL; ... echo URL\siteURL();
use CodeIgniter\Helpers\URL; function site_url() { return URL\SiteURL(); } echo site_url();