<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Pass Variables in a Query String?</title>
			<link>http://www.silverstripe.org/archive/show/141780#post141780</link>
			<description>&lt;p&gt;Pass Variables in a Query String?&lt;/p&gt;&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;What is the best way to pass variables from page to page (template to template) in Silverstripe? &lt;/p&gt;&lt;p&gt;I'm on a page which lists clients, and I want to click on the client and pass that client's name to a page whose controller takes the name and get all the projects for that particular client from the database. &lt;/p&gt;&lt;p&gt;The link is &quot;projects-by-client?Client=Client1&quot;. In my ProjectsByClient controller, I have the following function: &lt;/p&gt;&lt;p&gt;function ProjectsByClient($Client) { &lt;br /&gt;$whereStatement = &quot;ProjectClient = '&quot;.$Client.&quot;'&quot;; &lt;br /&gt;return DataObject::get(&quot;ProjectPage&quot;, $whereStatement); &lt;br /&gt;} &lt;/p&gt;&lt;p&gt;Thwe query works fine if you hard-code a client name. But my controller is saying &quot;missing argument&quot; when I try to pass it in dynamically. How can I pass the client name to the controller?? Seems like this should be easy. &lt;/p&gt;&lt;p&gt;Thanks in advance, &lt;br /&gt;Garrett&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Pass Variables in a Query String? &lt;a href=&quot;http://www.silverstripe.org/archive/show/141780#post141780&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/141780#post141780&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 13 Aug 2008 06:01:53 +1200</pubDate>
			<dc:creator>Garrett</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/141780#post141780</guid>
		</item>
		

	</channel>
</rss>