Welcome Guest, Not a member yet? Register   Sign In
How use route in Codeigniter
#2

[eluser]weboap[/eluser]
ok in the 1st link you are looking for the article by id or month or whatever (12), and title (abc) in the databse.
the basic idea is to have another column called for eg: slug in the article table populated at the entry point of the article, that will utilize url_title(); see http://ellislab.com/codeigniter/user-gui...elper.html

like
Code:
$article_title = 'your article title';
$slug = url_title($article_title);
//save this value to the column

then in reading time, you can look up the article by the slug , take the article title list it in an anchor or whatever with the link http://demo.com/your-article-title
...

hope this help.




Messages In This Thread
How use route in Codeigniter - by El Forum - 05-11-2012, 10:45 PM
How use route in Codeigniter - by El Forum - 05-11-2012, 11:05 PM
How use route in Codeigniter - by El Forum - 05-12-2012, 06:13 AM
How use route in Codeigniter - by El Forum - 05-12-2012, 10:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB