07-03-2009, 02:48 AM
[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
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
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