Last active
December 27, 2015 22:59
-
-
Save abdullahbutt/7403198 to your computer and use it in GitHub Desktop.
CI hyperlinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Keep Your Links Up-To-Date Automatically | |
Imagine that you've just written a menu page, with lots of hyperlinks to other pages in your site. They are all in the traditional HTML format: | |
<a href="http://www.mysite.com/index.php/start/hello/fred">say hello to Fred</a> | |
Then, you decide to move the site to another URL. That means you have to go painstakingly through your code, looking for each URL, and re-writing it, or else none of your links will work. | |
CI gives you a simple function to write hyperlinks like this: | |
echo anchor(start/hello/fred, Say hello to Fred); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment