ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CodeIgniter-style rule-based URL Routing?

October 07, 2011 10:11am

Subscribe [2]
  • #1 / Oct 07, 2011 10:11am

    tcast

    4 posts

    So I’m new to EE development, but I’ve got a fairly extensive experience with CI.

    I’d like to set up a URL structure like this:

    /channel-name/*
    /channel-name/*/videos
    /channel-name/*/shows
    /channel-name/*/awards

    The only way I can think to do it now is by using a conditional in the template. Is there a way to route the URL similar to how CodeIgniter would allow me to do it?

    Again, please forgive my ignorance if I’m missing something glaringly obvious!

    Thanks.

  • #2 / Oct 07, 2011 8:45pm

    Dan Decker

    7338 posts

    Hi tcast,

    Welcome to ExpressionEngine and the Forums!

    Have a read over this part of the User Guide. It helps connect the dots on how EE URLs work. They are very similar to Codeigniter URLs, but all the routing is handled in a special way. Essentially, your URLs will map via template-group/template and you would make your channel calls within your template. You can consider templates as being similar to CI views, if that helps. Let me know if you have any more question on EE’s URL structure, and if there is anything I can do to help.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases