Welcome Guest, Not a member yet? Register   Sign In
Controller Setup
#1

[eluser]Chad Tomkiss[/eluser]
Hi,

I have just started working with CodeIgniter, and firstly, what a framework!

However, I am a little curious as to whether I am setting the controllers up correctly.

I am comfortable with having:

example.com/community/team

and having

Code:
class Community extends Controller {

    function Community()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->view('community/index');
    }

    function team()
    {
        $this->load->view('community/team');
    }
}


However, what would be the best way of achieving:

example.com/community/resources/screensavers


Also, as functions cannot contain dashes, how would you achieve urls such as
example.com/community/meet-the-team for example.

I have looked through the forum/searched google, but I cannot find a solution that is viable.


Kind regards,

Chad


Messages In This Thread
Controller Setup - by El Forum - 07-03-2009, 02:48 AM
Controller Setup - by El Forum - 07-03-2009, 02:59 AM
Controller Setup - by El Forum - 07-03-2009, 03:07 AM
Controller Setup - by El Forum - 07-03-2009, 03:13 AM
Controller Setup - by El Forum - 07-03-2009, 03:52 AM
Controller Setup - by El Forum - 07-03-2009, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB