![]() |
Small fix for CI documentation/URL Helper - 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: Small fix for CI documentation/URL Helper (/showthread.php?tid=25387) |
Small fix for CI documentation/URL Helper - El Forum - 12-10-2009 [eluser]Carlos Mora[/eluser] In function anchor(), the first example states : ----8<---------------------- Code: echo anchor('news/local/123', 'title="My News"'); the second parameter "My News" is missing to get that result. The current code produces Code: <a href="https://saturno/listin.php/news/local/123">title="My News"</a> Regards, Carlos Small fix for CI documentation/URL Helper - El Forum - 12-10-2009 [eluser]sophistry[/eluser] yes, good catch, this is a bug in the documentation. the example code needs a second parameter to be a string specifying the text that will appear inside the a tags. check this CI URL helper code and see if you can spot why the example is wrong: Code: /** |