html_helper link_tag() 6th parameter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: html_helper link_tag() 6th parameter (/showthread.php?tid=23417) |
html_helper link_tag() 6th parameter - El Forum - 10-09-2009 [eluser]skunkbad[/eluser] From what I understand, the 6th parameter of link_tag() should build the link with either a relative link, or an absolute link, depending on if TRUE or FALSE. In it's current state, the link_tag function will always prepend the value of the href with the base_url. Lines 302 through 309 (if $href is an array): Code: if ($index_page === TRUE) Lines 325 through 332 (if $href is not an array): Code: elseif ($index_page === TRUE) Am I right? If I am right, both lines 308 and 331 should be changed: Code: // Line 308 Code: // Line 331 html_helper link_tag() 6th parameter - El Forum - 10-14-2009 [eluser]skunkbad[/eluser] so, nobody cares about link_tag() ? |