Welcome Guest, Not a member yet? Register   Sign In
language subdomains
#6

I'm really hoping someone knowledgeable might chime in on whether or not its advisable to modify the site_url function.

It looks like site_url() appears in the the core CI files in 16 places:
Code:
$ schphp "site_url\s*(" system
system/core/Config.php:    public function site_url($uri = '', $protocol = NULL)
system/core/Config.php:     * @used-by    CI_Config::site_url()
system/libraries/Calendar.php:            $this->next_prev_url = $this->CI->config->site_url($this->CI->router->class.'/'.$this->CI->router->method);
system/libraries/Javascript/Jquery.php:        $controller = (strpos('://', $controller) === FALSE) ? $controller : $this->CI->config->site_url($controller);
system/helpers/html_helper.php:                    $img .= ' src="'.get_instance()->config->site_url($v).'"';
system/helpers/html_helper.php:                        $link .= 'href="'.$CI->config->site_url($v).'" ';
system/helpers/html_helper.php:                $link .= 'href="'.$CI->config->site_url($href).'" ';
system/helpers/form_helper.php:            $action = $CI->config->site_url($CI->uri->uri_string());
system/helpers/form_helper.php:            $action = $CI->config->site_url($action);
system/helpers/url_helper.php:    function site_url($uri = '', $protocol = NULL)
system/helpers/url_helper.php:        return get_instance()->config->site_url($uri, $protocol);
system/helpers/url_helper.php:        return $CI->config->site_url($CI->uri->uri_string());
system/helpers/url_helper.php:            ? site_url($uri)
system/helpers/url_helper.php:            : (preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri));
system/helpers/url_helper.php:        $site_url = preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri);
system/helpers/url_helper.php:            $uri = site_url($uri);
Reply


Messages In This Thread
language subdomains - by sneakyimp - 11-18-2017, 12:42 PM
RE: language subdomains - by Kaosweaver - 11-20-2017, 05:53 AM
RE: language subdomains - by Narf - 11-20-2017, 06:31 AM
RE: language subdomains - by Kaosweaver - 11-20-2017, 09:56 AM
RE: language subdomains - by sneakyimp - 11-21-2017, 11:17 AM
RE: language subdomains - by sneakyimp - 11-22-2017, 12:17 PM
RE: language subdomains - by sneakyimp - 11-22-2017, 02:39 PM
RE: language subdomains - by Kaosweaver - 11-24-2017, 08:12 AM
RE: language subdomains - by myhanet - 12-07-2017, 04:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB