Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorberseck
    • CommentTimeDec 1st 2009 edited
     
    Hello guys

    Im having here an problem that I cant figured out how to souve it I think it shoud be easy, but I dont know how to do it
    I have this route:
    $Map->connect('/films/:uniquetitle', array('controller' => 'film', 'action' => 'show','module' => 'film'));

    Movies name came with: http://www.myurl.com/films/up for example

    Ok its working fine no problem with that
    But in this tpl show I have one part that have lot of images, so I'm making like a gallery and I would like to put some direct links to this images
    So I was trying something like this:
    $Map->connect('/films/:uniquetitle/images/:picture_name', array('controller' => 'film', 'action' => 'show','module' => 'film'));

    But when I do that my direct link to filmes on my URL get this /images too
    Like:
    http://www.myurl.com/films/up/images

    And I would like to have 2 diferente routes one for my utitle and another one for the picture name
    one for my direct movie names:
    http://www.myurl.com/films/up
    And another one for pictures but same tpl:
    http://www.myurl.com/films/up/images

    Anyone knows how to do that? is it possible?
    Thx in advance

    berseck
    • CommentAuthorberseck
    • CommentTimeDec 1st 2009
     
    I found my answear

    Just changing to
    $Map->connect('/films/:uniquetitle/:reffer/:picture_name', array('controller' => 'film', 'action' => 'show','module' => 'film', 'reffer' => OPTIONAL, 'picture_name' => OPTIONAL));

    And It is done ;)

    cya
Add your comments
    Username Password
  • Format comments as