• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title after the id in the url gives 404

#8
[eluser]theprodigy[/eluser]
Are you using the title for anything other than 'clean urls'? Do you actually have a stub field in the db that you are querying against?
It doesn't appear to be so, which is why I am asking.

Code:
function view($blog_id, $blog_title) { //add $blog_title as parameter as well
    $this->load->model('blog_model');
    $data['rows'] = $this->blog_model->showSingleblog($blog_id);
    $this->load->view('blogs/blog_singleview', $data);
}

and maybe alter your $route
Code:
$route['blog/:num/:any'] = "blog/view";


Messages In This Thread
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 08:35 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 11:12 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 11:24 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 12:02 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 02:02 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 02:13 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 03:05 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 03:09 PM
Title after the id in the url gives 404 - by El Forum - 05-23-2011, 07:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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