HELP with URL

#8
[eluser]Twisted1919[/eluser]
Daca modelul tau se numeste News_model si metoda din model care ia stirile se numeste get_article_by_id($article_id) atunci:
Code:
$this->load->model('news_model');
if(!$data=$this->news_model->get_article_by_id($article_id))
{
   redirect('news');
}
Apuca-te si citeste documentatia cum trebuie ca n-ai sa reusesti altfel .


Messages In This Thread
HELP with URL - by El Forum - 01-07-2011, 01:06 PM
HELP with URL - by El Forum - 01-07-2011, 01:20 PM
HELP with URL - by El Forum - 01-07-2011, 02:54 PM
HELP with URL - by El Forum - 01-07-2011, 03:02 PM
HELP with URL - by El Forum - 01-07-2011, 03:09 PM
HELP with URL - by El Forum - 01-07-2011, 03:29 PM
HELP with URL - by El Forum - 01-07-2011, 03:39 PM
HELP with URL - by El Forum - 01-07-2011, 04:27 PM
HELP with URL - by El Forum - 01-07-2011, 05:57 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.