Welcome Guest, Not a member yet? Register   Sign In
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, 07:35 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 10:12 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 10:24 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 11:02 AM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 01:02 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 01:13 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 02:05 PM
Title after the id in the url gives 404 - by El Forum - 05-22-2011, 02:09 PM
Title after the id in the url gives 404 - by El Forum - 05-23-2011, 06:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB