<?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>Fri, 11 May 2012 06:10:20 +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>От: ya-raul</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-3604</link>
		<dc:creator>ya-raul</dc:creator>
		<pubDate>Sat, 11 Feb 2012 23:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-3604</guid>
		<description>все равно не вышло. ну и хрен с ним :)</description>
		<content:encoded><![CDATA[<p>все равно не вышло. ну и хрен с ним <img src='http://brotkin.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>От: ya-raul</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-3603</link>
		<dc:creator>ya-raul</dc:creator>
		<pubDate>Sat, 11 Feb 2012 23:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-3603</guid>
		<description>а еще здесь багнутые комменты :D
Поправки
*Допустим у меня URL вида &lt;code&gt;(--(/))&lt;/code&gt;
*ссылки ведущие на первую страницу превращаются в </description>
		<content:encoded><![CDATA[<p>а еще здесь багнутые комменты <img src='http://brotkin.ru/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Поправки<br />
*Допустим у меня URL вида <code>(--(/))</code><br />
*ссылки ведущие на первую страницу превращаются в</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: ya-raul</title>
		<link>http://brotkin.ru/2009/10/26/ko3-pagination/comment-page-1/#comment-3602</link>
		<dc:creator>ya-raul</dc:creator>
		<pubDate>Sat, 11 Feb 2012 23:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://brotkin.ru/?p=278#comment-3602</guid>
		<description>Нашел в пагинаторе баг. Заключается в следующем.
Допустим у меня URL вида &lt;code&gt; &#039;(--(/))&#039; &lt;/code&gt;
если я перехожу первый раз на любую из страниц то все нормально, но ссылки все ссылки ведущие на первую страницу превращаются в .
отдебажил нашел в файле MODPATH.pagination/classes/kohana/pagination.php
на 216 строке условие:
&lt;code&gt;	if ($page === 1 AND ! $this-&gt;config[&#039;first_page_in_url&#039;])
		{
			$page = NULL;
		}
&lt;/code&gt;
удалил . все заработало :)
конфигами решить траблу не получилось дальше искать не стал</description>
		<content:encoded><![CDATA[<p>Нашел в пагинаторе баг. Заключается в следующем.<br />
Допустим у меня URL вида <code> '(--(/))' </code><br />
если я перехожу первый раз на любую из страниц то все нормально, но ссылки все ссылки ведущие на первую страницу превращаются в .<br />
отдебажил нашел в файле MODPATH.pagination/classes/kohana/pagination.php<br />
на 216 строке условие:<br />
<code>	if ($page === 1 AND ! $this-&gt;config['first_page_in_url'])<br />
		{<br />
			$page = NULL;<br />
		}<br />
</code><br />
удалил . все заработало <img src='http://brotkin.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
конфигами решить траблу не получилось дальше искать не стал</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

