<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Forum CakePHP.org.pl - przechwytywanie danych z paska adresu? jak?   cake/posts/view/19/1231]]></title>
		<link>http://forum.cakephp.org.pl/topic/67/przechwytywanie-danych-z-paska-adresu-jak-cakepostsview191231/</link>
		<description><![CDATA[Najświeższe odpowiedzi w przechwytywanie danych z paska adresu? jak?   cake/posts/view/19/1231.]]></description>
		<lastBuildDate>Wed, 08 Jul 2009 13:34:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Odp: przechwytywanie danych z paska adresu? jak?   cake/posts/view/19/1231]]></title>
			<link>http://forum.cakephp.org.pl/post/382/#p382</link>
			<description><![CDATA[<p>mi tam przychodza do glowy dwa proste rozwiazania :</p><p>1. stndardowe , ale niekoniecznie moze sie nadawac, bo nie doczytalem do konca Twojego posta ;-)<br /></p><div class="codebox"><pre><code>public function action($arg1 .... $argN)
{
       ....
}</code></pre></div><p>2. O wiele wygodniejsze niz poprzednie + grzebanie w przekazanych parametrach<br /></p><div class="codebox"><pre><code>public function action()
{
       $tuSaMojeAtrbuty = func_get_args();
       ....
}</code></pre></div><p>Co do drugiego, to stosuje je np w modelach jezeli dokladnie nie wiadomo ile parametrow i w jakiej kolejnosci przekaze do metody ;-)</p>]]></description>
			<author><![CDATA[null@example.com (robal77)]]></author>
			<pubDate>Wed, 08 Jul 2009 13:34:16 +0000</pubDate>
			<guid>http://forum.cakephp.org.pl/post/382/#p382</guid>
		</item>
		<item>
			<title><![CDATA[Odp: przechwytywanie danych z paska adresu? jak?   cake/posts/view/19/1231]]></title>
			<link>http://forum.cakephp.org.pl/post/317/#p317</link>
			<description><![CDATA[<p>Witam, do parametrów przekazanych w adresie URL można się dostać za pomocą takiego kodu:</p><div class="codebox"><pre><code>$this-&gt;params[&#039;pass&#039;]</code></pre></div><p>Tak instrukcja zwraca tablicę parametrów przekazanych w adresie URL - dla podanego przez Ciebie przykładu tablica będzie wyglądać następująco:</p><div class="codebox"><pre><code>Array ( [0] =&gt; 19 [1] =&gt; 1231 )</code></pre></div><p>Za pomocą zmiennej <strong>params</strong> można się dostać także do innych parametrów przekazanych w adresie URL (np. nazwy kontrolera lub akcji) - więcej informacji oczywiście w manualu: <a href="http://book.cakephp.org/view/55/The-Parameters-Attribute-params">http://book.cakephp.org/view/55/The-Par … ute-params</a></p>]]></description>
			<author><![CDATA[null@example.com (michol)]]></author>
			<pubDate>Thu, 14 May 2009 11:03:48 +0000</pubDate>
			<guid>http://forum.cakephp.org.pl/post/317/#p317</guid>
		</item>
		<item>
			<title><![CDATA[przechwytywanie danych z paska adresu? jak?   cake/posts/view/19/1231]]></title>
			<link>http://forum.cakephp.org.pl/post/315/#p315</link>
			<description><![CDATA[<p>http://localhost/cake/posts/view/19/1231 </p><br /><p>tego typu adres przekazuje dane w zmiennych:</p><p>core ma włączone :&nbsp; &quot;debug=3&quot;</p><br /><br /><p>chcialbym pobrac zmienna stąd:</p><p>&nbsp; &nbsp; [params] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [pass] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =&gt; 19<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [1] =&gt; 1231<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )<br />[...]</p><br /><p>chcę pobrać&nbsp; tą zmienną&nbsp; &nbsp;[1] = 1231&nbsp; &nbsp;tylko jak ?</p><br /><p>czekam na wasze pomysły...</p><br /><br /><br /><p>----------------------------------kod ---------------<br />&nbsp; &nbsp; &nbsp; &nbsp; PostsController Object<br />(<br />&nbsp; &nbsp; [name] =&gt; Posts<br />&nbsp; &nbsp; [here] =&gt; /cake/posts/view/19/1231<br />&nbsp; &nbsp; [webroot] =&gt; /cake/<br />&nbsp; &nbsp; [action] =&gt; view<br />&nbsp; &nbsp; [uses] =&gt; <br />&nbsp; &nbsp; [helpers] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =&gt; Html<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [1] =&gt; Form<br />&nbsp; &nbsp; &nbsp; &nbsp; )</p><p>&nbsp; &nbsp; [params] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [pass] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =&gt; 19<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [1] =&gt; 1231<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [named] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [controller] =&gt; posts<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [action] =&gt; view<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [plugin] =&gt; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [form] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [url]=&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [url]=&gt; posts/view/19/1231<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [models] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =&gt; Post<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</p><p>&nbsp; &nbsp; &nbsp; &nbsp; )</p><p>[..................]</p>]]></description>
			<author><![CDATA[null@example.com (johnny)]]></author>
			<pubDate>Sun, 10 May 2009 12:12:51 +0000</pubDate>
			<guid>http://forum.cakephp.org.pl/post/315/#p315</guid>
		</item>
	</channel>
</rss>

