<?xml version="1.0" encoding="utf-8"?>
		<feed xmlns="http://www.w3.org/2005/Atom">
			<title type="text">Akelos PHP Framework Forum - routes to same action</title>
			<updated>2010-09-10T08:43:49+02:00</updated>
			<id>http://forum.akelos.org/</id>
			<link rel="alternate" type="text/html" hreflang="en"
				href="http://forum.akelos.org/discussion/?DiscussionID=848&amp;page=1"/>
			<link rel="self" type="application/atom+xml"
				href="http://forum.akelos.org/discussion/?DiscussionID=848&amp;Feed=ATOM&amp;page=1"/>
			<generator
				uri="http://getvanilla.com/"
				version="1.1.4">
				Lussumo Vanilla &amp; Feed Publisher
			</generator>
			<entry>
		<title>routes to same action</title>
		<link rel="alternate" href="http://forum.akelos.org/discussion/848/?Focus=3327#Comment_3327" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.akelos.org/discussion/848/?Focus=3327#Comment_3327</id>
		<published>2009-12-01T16:29:07+01:00</published>
		<updated>2009-12-01T16:33:41+01:00</updated>
		<author>
			<name>berseck</name>
			<uri>http://forum.akelos.org/account/528/</uri>
		</author>
		<summary type="text" xml:lang="en">
			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-&gt;connect('/films/:uniquetitle', ...
		</summary>
		<content type="html">
			<![CDATA[Hello guys<br /><br />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<br />I have this route:<br />$Map-&gt;connect('/films/:uniquetitle', array('controller' =&gt; 'film', 'action' =&gt; 'show','module' =&gt; 'film'));<br /><br />Movies name came with: http://www.myurl.com/films/up for example<br /><br />Ok its working fine no problem with that<br />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<br />So I was trying something like this:<br />$Map-&gt;connect('/films/:uniquetitle/images/:picture_name', array('controller' =&gt; 'film', 'action' =&gt; 'show','module' =&gt; 'film'));<br /><br />But when I do that my direct link to filmes on my URL get this /images too<br />Like: <br />http://www.myurl.com/films/up/images<br /><br />And I would like to have 2 diferente routes one for my utitle and another one for the picture name<br />one for my direct movie names:<br />http://www.myurl.com/films/up<br />And another one for pictures but same tpl:<br />http://www.myurl.com/films/up/images<br /><br />Anyone knows how to do that? is it possible?<br />Thx in advance<br /><br />berseck]]>
		</content>
	</entry>
	<entry>
		<title>routes to same action</title>
		<link rel="alternate" href="http://forum.akelos.org/discussion/848/?Focus=3328#Comment_3328" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.akelos.org/discussion/848/?Focus=3328#Comment_3328</id>
		<published>2009-12-01T18:28:07+01:00</published>
		<updated>2010-09-10T08:43:49+02:00</updated>
		<author>
			<name>berseck</name>
			<uri>http://forum.akelos.org/account/528/</uri>
		</author>
		<summary type="text" xml:lang="en">
			I found my answear

Just changing to
$Map-&gt;connect('/films/:uniquetitle/:reffer/:picture_name', array('controller' =&gt; 'film', 'action' =&gt; 'show','module' =&gt; 'film',  'reffer' =&gt; ...
		</summary>
		<content type="html">
			<![CDATA[I found my answear<br /><br />Just changing to<br />$Map-&gt;connect('/films/:uniquetitle/:reffer/:picture_name', array('controller' =&gt; 'film', 'action' =&gt; 'show','module' =&gt; 'film',  'reffer' =&gt; OPTIONAL, 'picture_name' =&gt; OPTIONAL));<br /><br />And It is done ;)<br /><br />cya]]>
		</content>
	</entry>
	
		</feed>