Welcome Guest, Not a member yet? Register   Sign In
Remove class from url.
#4

[eluser]Dam1an[/eluser]
Another solution would be to do
Code:
// Route
// Insert other routes here for pages which exist
$route['(:any)/(:any)'] = 'blog/find/$1/$2';

// Blog controller
function find($username, $article) {
    // This should really be in a model
    $this->db->where('username', $username);
    $this->db->where('article', $article);
    // Rest of DB logic
}


Messages In This Thread
Remove class from url. - by El Forum - 05-15-2009, 03:47 PM
Remove class from url. - by El Forum - 05-15-2009, 03:49 PM
Remove class from url. - by El Forum - 05-16-2009, 04:05 AM
Remove class from url. - by El Forum - 05-16-2009, 04:13 AM
Remove class from url. - by El Forum - 05-16-2009, 04:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB