It looks like you're new here. If you want to get involved, click one of these buttons!
$id = uri_segment(2);
if (!empty($id))
{
$ads_item = fuel_model('ads', array('find' => 'one', 'where' => array('id' => $id)));
if (empty($ads_item)) show_404();
}
else
{
$ads = fuel_model('ads');
}
Comments
$CI->ads_model->debug_query();
It seems that /ads/1 doesn't reach the page. I put "exit()" code, it doesn't work either.
/ads is working just fine. The "exit()" is working.
I will restart the tutorial once more to see am I missing something.
Thanks.
$pages['ad/:any'] = array('view' => 'ad');
Or you can set the fuel config parameter of "auto_search_views" = TRUE.