Welcome Guest, Not a member yet? Register   Sign In
Folders
#5

[eluser]roj[/eluser]
Something along these lines i think
Code:
class client extends Controller
{
    
    function project()
    {
        // see if there's a specific project to get
        if($this->uri->segment(2))
        {
            // Get specific project info
        }
        else
        {
            // Get list of projects
        }
    }
    
}

and set a route
Code:
$route['.*']             = "client/project/$1";

would send all requests to the project function within the client class and so come from
Code:
example.com/jondoe/project1


Messages In This Thread
Folders - by El Forum - 10-21-2008, 04:57 PM
Folders - by El Forum - 10-21-2008, 05:08 PM
Folders - by El Forum - 10-21-2008, 05:11 PM
Folders - by El Forum - 10-21-2008, 05:19 PM
Folders - by El Forum - 10-21-2008, 05:43 PM
Folders - by El Forum - 10-21-2008, 05:46 PM
Folders - by El Forum - 10-21-2008, 05:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB