Welcome Guest, Not a member yet? Register   Sign In
URI Language Identifier and paths
#2

[eluser]dag[/eluser]
i would suggest using the url helper for generating links
Code:
<a href="php site_url('controller/method') php">link</a>

if you then need some additional informations for the link url you can just
overwrite the site_url function by putting a url_helper.php in your application/helpers
directory which implements the desired functionality..

Code:
function site_url($str)
{
   $CI =& get_instance();
    //retrieve your language key etc
    $lang = ...
   return $CI->config->site_url($lang . $uri);
}


Messages In This Thread
URI Language Identifier and paths - by El Forum - 09-01-2008, 09:55 AM
URI Language Identifier and paths - by El Forum - 12-28-2009, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB