<?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://kohanaframework.su/starting/template_controller/feed" rel="self" type="application/rss+xml" />
	<link>http://kohanaframework.su</link>
	<description>Документация и обучение фреймворку Kohana v3.2</description>
	<lastBuildDate>Tue, 04 Aug 2015 19:12:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Автор: jugj</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-2#comment-2114</link>
		<dc:creator>jugj</dc:creator>
		<pubDate>Fri, 03 Jan 2014 13:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-2114</guid>
		<description>бороду сбрей и все получится</description>
		<content:encoded><![CDATA[<p>бороду сбрей и все получится</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: fatalstrike</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-2#comment-1686</link>
		<dc:creator>fatalstrike</dc:creator>
		<pubDate>Fri, 05 Jul 2013 18:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1686</guid>
		<description>При наследовании от Controller_Template вызывает ошибку 

&lt;pre&gt;
ErrorException [ 8 ]: Array to string conversion ~ SYSPATH\classes\Kohana\Log\Writer.php [ 81 ]
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>При наследовании от Controller_Template вызывает ошибку </p>
<pre>
ErrorException [ 8 ]: Array to string conversion ~ SYSPATH\classes\Kohana\Log\Writer.php [ 81 ]
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: denis</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-2#comment-1589</link>
		<dc:creator>denis</dc:creator>
		<pubDate>Wed, 27 Mar 2013 20:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1589</guid>
		<description>внатуре, пасиба чувак</description>
		<content:encoded><![CDATA[<p>внатуре, пасиба чувак</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: vitaszanoza</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-2#comment-1559</link>
		<dc:creator>vitaszanoza</dc:creator>
		<pubDate>Sun, 24 Feb 2013 13:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1559</guid>
		<description>Уф! Нашел ошибку. я вместо
class Controller_Welcome extends Controller_Template {
оставил
class Controller_Welcome extends Controller {

для тех кто сделал также =)</description>
		<content:encoded><![CDATA[<p>Уф! Нашел ошибку. я вместо<br />
class Controller_Welcome extends Controller_Template {<br />
оставил<br />
class Controller_Welcome extends Controller {</p>
<p>для тех кто сделал также =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Денис Васильевич</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-1#comment-1368</link>
		<dc:creator>Денис Васильевич</dc:creator>
		<pubDate>Sat, 20 Oct 2012 14:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1368</guid>
		<description>Выше в комментах adr6t7 дал пример.</description>
		<content:encoded><![CDATA[<p>Выше в комментах adr6t7 дал пример.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: shukov</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-1#comment-1367</link>
		<dc:creator>shukov</dc:creator>
		<pubDate>Sat, 20 Oct 2012 13:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1367</guid>
		<description>Можно ли передать два вида в один шаблон?

типа такого
 $this-&gt;template-&gt;content = new View(&#039;salon&#039;,&#039;contacts&#039;);

хочу в один шаблон вставить другой шаблон, и уже в этот другой шаблон вставить сам вид.

возможно ли такое реализовать?</description>
		<content:encoded><![CDATA[<p>Можно ли передать два вида в один шаблон?</p>
<p>типа такого<br />
 $this-&gt;template-&gt;content = new View(&#8216;salon&#8217;,'contacts&#8217;);</p>
<p>хочу в один шаблон вставить другой шаблон, и уже в этот другой шаблон вставить сам вид.</p>
<p>возможно ли такое реализовать?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: SergFromSimf</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-1#comment-1360</link>
		<dc:creator>SergFromSimf</dc:creator>
		<pubDate>Thu, 18 Oct 2012 13:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1360</guid>
		<description>public $template = &#039;main1&#039;;
и 
$this-&gt;template = View::factory(&#039;main2&#039;);</description>
		<content:encoded><![CDATA[<p>public $template = &#8216;main1&#8242;;<br />
и<br />
$this-&gt;template = View::factory(&#8216;main2&#8242;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Денис Васильевич</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-1#comment-1359</link>
		<dc:creator>Денис Васильевич</dc:creator>
		<pubDate>Thu, 18 Oct 2012 13:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1359</guid>
		<description>Где различный синтаксис ?</description>
		<content:encoded><![CDATA[<p>Где различный синтаксис ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: SergFromSimf</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-1#comment-1358</link>
		<dc:creator>SergFromSimf</dc:creator>
		<pubDate>Thu, 18 Oct 2012 12:55:35 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1358</guid>
		<description>Вопрос чисто академический. Всегда писал без использования классов. Это для меня новое.. Это сработало. Смутило что объявление и переназначение переменной имеет различный синтаксис.. Возможно пригодится для урезанной версии отображения сайта.. для моб устройств. или подстраивать кол-во выводимой информации под разрешение клиента (монитора).</description>
		<content:encoded><![CDATA[<p>Вопрос чисто академический. Всегда писал без использования классов. Это для меня новое.. Это сработало. Смутило что объявление и переназначение переменной имеет различный синтаксис.. Возможно пригодится для урезанной версии отображения сайта.. для моб устройств. или подстраивать кол-во выводимой информации под разрешение клиента (монитора).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Денис Васильевич</title>
		<link>http://kohanaframework.su/starting/template_controller/comment-page-1#comment-1354</link>
		<dc:creator>Денис Васильевич</dc:creator>
		<pubDate>Thu, 18 Oct 2012 11:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://kohanaframework.su/?page_id=543#comment-1354</guid>
		<description>Что это за сайт такой, где все шаблоны разные ?
Т.е. на одной странице меню слева, на другой справа, а где-то хидера нет ?
Можно писать в контроллере что-то вроде
&lt;pre lang=&quot;php&quot;&gt;
$this-&gt;template = View::factory(&#039;тут другой шаблон, какой-нибудь main1&#039;);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Что это за сайт такой, где все шаблоны разные ?<br />
Т.е. на одной странице меню слева, на другой справа, а где-то хидера нет ?<br />
Можно писать в контроллере что-то вроде</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">template</span> <span style="color: #339933;">=</span> View<span style="color: #339933;">::</span><span style="color: #004000;">factory</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'тут другой шаблон, какой-нибудь main1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>
