<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Комментарии на: Передача параметров запроса в действия контроллеров</title>
	<atom:link href="http://zend-framework.ru/mapping-request-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://zend-framework.ru/mapping-request-parameters/</link>
	<description>Статьи, руководства и заметки о фреймворке для PHP - Zend Framework</description>
	<lastBuildDate>Fri, 18 May 2012 03:52:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>От: Сергей Митрошин</title>
		<link>http://zend-framework.ru/mapping-request-parameters/comment-page-1/#comment-673</link>
		<dc:creator>Сергей Митрошин</dc:creator>
		<pubDate>Thu, 15 Oct 2009 18:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://zend-framework.ru/?p=176#comment-673</guid>
		<description>albeva, большое спасибо за пояснения.</description>
		<content:encoded><![CDATA[<p>albeva, большое спасибо за пояснения.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: albeva</title>
		<link>http://zend-framework.ru/mapping-request-parameters/comment-page-1/#comment-672</link>
		<dc:creator>albeva</dc:creator>
		<pubDate>Thu, 15 Oct 2009 10:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://zend-framework.ru/?p=176#comment-672</guid>
		<description>sorry hope you understand english (I can read russian, but not write it) -parameters and type in the phpdoc are optional if you do not require type casting. Since PHP does not allow typed parameters for other than classes and arrays you need to specify them manually.
---
// no arguments
function someAction($mixedType = 0, SomeObject $obj, array $arr) { ... }

However the order in which parameters appear in phpdoc is important! So if you need to specify type hinting for the last argument you need also include all preceding arguments as well -this is due to limitation in Zend_Reflection API

hope this helps</description>
		<content:encoded><![CDATA[<p>sorry hope you understand english (I can read russian, but not write it) -parameters and type in the phpdoc are optional if you do not require type casting. Since PHP does not allow typed parameters for other than classes and arrays you need to specify them manually.<br />
&#8212;<br />
// no arguments<br />
function someAction($mixedType = 0, SomeObject $obj, array $arr) { &#8230; }</p>
<p>However the order in which parameters appear in phpdoc is important! So if you need to specify type hinting for the last argument you need also include all preceding arguments as well -this is due to limitation in Zend_Reflection API</p>
<p>hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Сергей Митрошин</title>
		<link>http://zend-framework.ru/mapping-request-parameters/comment-page-1/#comment-671</link>
		<dc:creator>Сергей Митрошин</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://zend-framework.ru/?p=176#comment-671</guid>
		<description>Насколько я знаю, он необязателен.
Служит он, в первую очередь, для приведения типов переменных. Как видно из примера, можно автоматически преобразовывать параметры например в Zend_Date.</description>
		<content:encoded><![CDATA[<p>Насколько я знаю, он необязателен.<br />
Служит он, в первую очередь, для приведения типов переменных. Как видно из примера, можно автоматически преобразовывать параметры например в Zend_Date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: lp</title>
		<link>http://zend-framework.ru/mapping-request-parameters/comment-page-1/#comment-670</link>
		<dc:creator>lp</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://zend-framework.ru/?p=176#comment-670</guid>
		<description>я имел ввиду что странно что при том что все переменные указаны в параметрах экшена, нужен phpdoc. разве что опять же он не обязателен и просто служит своей цели - документации кода</description>
		<content:encoded><![CDATA[<p>я имел ввиду что странно что при том что все переменные указаны в параметрах экшена, нужен phpdoc. разве что опять же он не обязателен и просто служит своей цели &#8211; документации кода</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Сергей Митрошин</title>
		<link>http://zend-framework.ru/mapping-request-parameters/comment-page-1/#comment-669</link>
		<dc:creator>Сергей Митрошин</dc:creator>
		<pubDate>Thu, 15 Oct 2009 07:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://zend-framework.ru/?p=176#comment-669</guid>
		<description>Не маршруты ведь указываются, а переменные. Не вижу проблемы в том, что это указано в контроллере.</description>
		<content:encoded><![CDATA[<p>Не маршруты ведь указываются, а переменные. Не вижу проблемы в том, что это указано в контроллере.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: lp</title>
		<link>http://zend-framework.ru/mapping-request-parameters/comment-page-1/#comment-668</link>
		<dc:creator>lp</dc:creator>
		<pubDate>Thu, 15 Oct 2009 07:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://zend-framework.ru/?p=176#comment-668</guid>
		<description>если честно, даже из оригинала не совсем понятно, обязателен ли блок phpdoc&#039;a с описанием переменных, или он просто желателен, но можно и без него? вообще странно, учитывая что переменные, да и их типы, указываются в параметрах самого контроллера.</description>
		<content:encoded><![CDATA[<p>если честно, даже из оригинала не совсем понятно, обязателен ли блок phpdoc&#8217;a с описанием переменных, или он просто желателен, но можно и без него? вообще странно, учитывая что переменные, да и их типы, указываются в параметрах самого контроллера.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

