Get news by id.. help |
[eluser]Evollution[/eluser]
i have a function that should get news contenct by id but i don't understand what it don't works so controller/news.php (i wanna acces news by this url : site.com/news/news-id/news-title/ Code: public function _remap($method) /models/news-model.php Code: function get_article_by_id($article_id) now when i acces site.com/news/news-id .. i am redirected to news index direct link (http://www.fifago.com/demo2/index.php/news)
[eluser]Cristian Gilè[/eluser]
Hi Evollution, your model doesn't return anything! Cristian Gilè
[eluser]InsiteFX[/eluser]
/models/news-model.php Code: function get_article_by_id($article_id) InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |