<?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>Комментарии на: Ko3: Pagination</title>
	<atom:link href="http://brotkin.ru/2009/10/26/ko3-pagination/feed/" rel="self" type="application/rss+xml" />
	<link>http://brotkin.ru/2009/10/26/ko3-pagination/</link>
	<description>ковыряемся в Internet</description>
	<lastBuildDate>Mon, 30 Jan 2012 23:38:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>От: Jah</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2598</link>
		<dc:creator>Jah</dc:creator>
		<pubDate>Wed, 20 Oct 2010 19:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2598</guid>
		<description>минус мне :)
проверил, действительно работает :)
раньше в какой-то версии мне эксэпшн по поводу ненайденного роута выдавало. наверное ещё в 3.0.6 или даже раньше.

спасибо за информацию =)</description>
		<content:encoded><![CDATA[<p>минус мне <img src='http://brotkin.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
проверил, действительно работает <img src='http://brotkin.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
раньше в какой-то версии мне эксэпшн по поводу ненайденного роута выдавало. наверное ещё в 3.0.6 или даже раньше.</p>
<p>спасибо за информацию =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: biakaveron</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2597</link>
		<dc:creator>biakaveron</dc:creator>
		<pubDate>Wed, 20 Oct 2010 10:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2597</guid>
		<description>Почему это не будет работать? Kohana автоматически добавляет в конец URI слэш, так что проблем не должно быть.</description>
		<content:encoded><![CDATA[<p>Почему это не будет работать? Kohana автоматически добавляет в конец URI слэш, так что проблем не должно быть.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Jah</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2596</link>
		<dc:creator>Jah</dc:creator>
		<pubDate>Wed, 20 Oct 2010 08:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2596</guid>
		<description>да, но тогда вот такая проблема :)
http://site.com/controller - будет работать.
http://site.com/controller/ - 404 не найден роут.

это был единственный вариант который я придумал дабы обойти эту проблему.

может что посоветуете? :)</description>
		<content:encoded><![CDATA[<p>да, но тогда вот такая проблема <img src='http://brotkin.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://site.com/controller" rel="nofollow">http://site.com/controller</a> &#8211; будет работать.<br />
<a href="http://site.com/controller/" rel="nofollow">http://site.com/controller/</a> &#8211; 404 не найден роут.</p>
<p>это был единственный вариант который я придумал дабы обойти эту проблему.</p>
<p>может что посоветуете? <img src='http://brotkin.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>От: biakaveron</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2595</link>
		<dc:creator>biakaveron</dc:creator>
		<pubDate>Wed, 20 Oct 2010 07:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2595</guid>
		<description>Только роут можно упростить - &lt;code&gt;&lt;pre lang=&quot;php&quot;&gt;(&lt;controller&gt;(/&lt;action&gt;(/&lt;id&gt;(/page&lt;page&gt;)))&lt;/pre&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Только роут можно упростить &#8211; <code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>controller<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">/&lt;</span>action<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">/&lt;</span>id<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>page<span style="color: #339933;">&lt;</span>page<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Jah</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2593</link>
		<dc:creator>Jah</dc:creator>
		<pubDate>Tue, 19 Oct 2010 15:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2593</guid>
		<description>дубль два
&lt;code&gt;&lt;pre lang=&quot;php&quot;&gt;
		$page_data = array
			(
			  &#039;total_items&#039;     =&gt; $count,
			  &#039;items_per_page&#039;  =&gt; $per_page,
			  &#039;current_page&#039;    =&gt; array
			  (
				  &#039;source&#039;     	=&gt; &#039;query_string&#039;,
				  &#039;key&#039;         =&gt; &#039;page&#039;
			  ),
			  &#039;auto_hide&#039;       =&gt; TRUE,
			  &#039;view&#039;			=&gt; &#039;pagination&#039;,
			);
&lt;/pre&gt;
&lt;/code&gt;
... и ...
&lt;code&gt;&lt;pre lang=&quot;php&quot;&gt;
Route::set(&#039;default&#039;, &#039;(&lt;controller&gt;(/)(&lt;action&gt;(/)(&lt;id&gt;(/page&lt;page&gt;)))&#039;)
	-&gt;defaults(array(
		&#039;controller&#039; =&gt; &#039;index&#039;,
		&#039;action&#039;     =&gt; &#039;index&#039;,
	));
&lt;/pre&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>дубль два<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #000088;">$page_data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span>
			<span style="color: #009900;">&#40;</span>
			  <span style="color: #0000ff;">'total_items'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$count</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'items_per_page'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$per_page</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'current_page'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span>
			  <span style="color: #009900;">&#40;</span>
				  <span style="color: #0000ff;">'source'</span>     	<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'query_string'</span><span style="color: #339933;">,</span>
				  <span style="color: #0000ff;">'key'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'page'</span>
			  <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'auto_hide'</span>       <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'view'</span>			<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'pagination'</span><span style="color: #339933;">,</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code><br />
&#8230; и &#8230;<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Route<span style="color: #339933;">::</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'default'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'(&lt;controller&gt;(/)(&lt;action&gt;(/)(&lt;id&gt;(/page&lt;page&gt;)))'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">defaults</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'controller'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'index'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'action'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'index'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Jah</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2592</link>
		<dc:creator>Jah</dc:creator>
		<pubDate>Tue, 19 Oct 2010 15:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2592</guid>
		<description>почему не юзать стандартный? либо использовать такой конфиг:

&lt;code&gt;&lt;pre lang=&quot;php&quot;&gt;
		$page_data = array
			(
			  &#039;total_items&#039;     =&gt; $count,
			  &#039;items_per_page&#039;  =&gt; $per_page,
			  &#039;current_page&#039;    =&gt; array
			  (
				  &#039;source&#039;     	=&gt; &#039;query_string&#039;,
				  &#039;key&#039;         =&gt; &#039;page&#039;
			  ),
			  &#039;auto_hide&#039;       =&gt; TRUE,
			  &#039;view&#039;			=&gt; &#039;pagination&#039;,
			);
&lt;/pre&gt;
&lt;/code&gt;

либо такой роутинг
&lt;code&gt;&lt;pre lang=&quot;php&quot;&gt;
Route::set(&#039;default&#039;, &#039;((/)((/)((/page)))&#039;)
	-&gt;defaults(array(
		&#039;controller&#039; =&gt; &#039;index&#039;,
		&#039;action&#039;     =&gt; &#039;index&#039;,
	));
&lt;/pre&gt;
&lt;/code&gt;

Если второй вариант то в конфиге пагинэйшна надо указать вместе query_string - route.

у меня работает и первый и второй вариант.</description>
		<content:encoded><![CDATA[<p>почему не юзать стандартный? либо использовать такой конфиг:</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #000088;">$page_data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span>
			<span style="color: #009900;">&#40;</span>
			  <span style="color: #0000ff;">'total_items'</span>     <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$count</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'items_per_page'</span>  <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$per_page</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'current_page'</span>    <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #990000;">array</span>
			  <span style="color: #009900;">&#40;</span>
				  <span style="color: #0000ff;">'source'</span>     	<span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'query_string'</span><span style="color: #339933;">,</span>
				  <span style="color: #0000ff;">'key'</span>         <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'page'</span>
			  <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'auto_hide'</span>       <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span>
			  <span style="color: #0000ff;">'view'</span>			<span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'pagination'</span><span style="color: #339933;">,</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>либо такой роутинг<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Route<span style="color: #339933;">::</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'default'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'((/)((/)((/page)))'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>defaults<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'controller'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'index'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'action'</span>     <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'index'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>Если второй вариант то в конфиге пагинэйшна надо указать вместе query_string &#8211; route.</p>
<p>у меня работает и первый и второй вариант.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Jah</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2591</link>
		<dc:creator>Jah</dc:creator>
		<pubDate>Tue, 19 Oct 2010 15:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2591</guid>
		<description>если с роутингом не получается,</description>
		<content:encoded><![CDATA[<p>если с роутингом не получается,</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: biakaveron</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2584</link>
		<dc:creator>biakaveron</dc:creator>
		<pubDate>Mon, 18 Oct 2010 13:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2584</guid>
		<description>Передаете [current_page][key] == &#039;route&#039;? Какой УРЛ получается?</description>
		<content:encoded><![CDATA[<p>Передаете [current_page][key] == &#8216;route&#8217;? Какой УРЛ получается?</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Сергей</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2583</link>
		<dc:creator>Сергей</dc:creator>
		<pubDate>Mon, 18 Oct 2010 13:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2583</guid>
		<description>&lt;code&gt;&lt;pre lang=&quot;php&quot;&gt;
Route::set(&#039;page&#039;, &#039;(&lt;controller&gt;(/&lt;action&gt;(/&lt;id&gt;(/&lt;page&gt;))))&#039;, array(&#039;id&#039; =&gt; &#039;[0-9]+&#039;, &#039;page&#039; =&gt; &#039;[0-9]+)&#039;))
	-&gt;defaults(array(
		&#039;controller&#039; =&gt; &#039;welcome&#039;,
		&#039;action&#039;     =&gt; &#039;index&#039;,
		&#039;id&#039;     =&gt; NULL,
		&#039;page&#039;      =&gt; NULL,

	)
&lt;/pre&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Route<span style="color: #339933;">::</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'(&lt;controller&gt;(/&lt;action&gt;(/&lt;id&gt;(/&lt;page&gt;))))'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'[0-9]+'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'[0-9]+)'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">defaults</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'controller'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'welcome'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'action'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'index'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'id'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'page'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #009900;">&#41;</span></pre></div></div>

<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Сергей</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-2578</link>
		<dc:creator>Сергей</dc:creator>
		<pubDate>Mon, 18 Oct 2010 12:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-2578</guid>
		<description>Для самого первого, пишу так:
Route::set(&#039;page&#039;, &#039;((/(/(/))))&#039;, array(&#039;id&#039; =&gt; &#039;[0-9]+&#039;, &#039;page&#039; =&gt; &#039;[0-9]+)&#039;))
	-&gt;defaults(array(
		&#039;controller&#039; =&gt; &#039;welcome&#039;,
		&#039;action&#039;     =&gt; &#039;index&#039;,
        &#039;id&#039;			=&gt; NULL,
		&#039;page&#039;			=&gt; NULL,

	));
и везду индекс...</description>
		<content:encoded><![CDATA[<p>Для самого первого, пишу так:<br />
Route::set(&#8216;page&#8217;, &#8216;((/(/(/))))&#8217;, array(&#8216;id&#8217; =&gt; &#8216;[0-9]+&#8217;, &#8216;page&#8217; =&gt; &#8216;[0-9]+)&#8217;))<br />
	-&gt;defaults(array(<br />
		&#8216;controller&#8217; =&gt; &#8216;welcome&#8217;,<br />
		&#8216;action&#8217;     =&gt; &#8216;index&#8217;,<br />
        &#8216;id&#8217;			=&gt; NULL,<br />
		&#8216;page&#8217;			=&gt; NULL,</p>
<p>	));<br />
и везду индекс&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

