<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Как сделать простейший плагин для Altocms / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://altocms.ru/comments/547/</link>
			<description><![CDATA[Не нашел документации о том, как сделать самый простой плагин для Altocms. Как сделать вывод с помощью собственного плагина «Hello]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Как сделать простейший плагин для Altocms (comment #9062)</title>
					<guid isPermaLink="true">http://altocms.ru/t/547/#comment9062</guid>
					<link>http://altocms.ru/547.html#comment9062</link>
					<author>s@dtkp.ru</author>
					<description><![CDATA[<a href="http://altocms.ru/blog/questions/537.html#comment8900" rel="nofollow">altocms.ru/blog/questions/537.html#comment8900</a><br/>
Мой комментарий про простейший плагин, правда в контексте возможностей движка для переопределения стандартных классов, но принцип неизменен и для простого «Hello World». <br/>
Для простейшего вывода своего шаблона — просто определяем свой экшен и назначаем ему шаблон.<br/>
<pre class="prettyprint"><code>class PluginExample_ActionExample extends ActionPlugin {
public function Init() {
        $this-&gt;SetDefaultEvent('index'); //обработчик по умолчанию
        $this-&gt;SetTemplateAction('название_файла_шаблона'); //шаблон для экшена
    }
protected function RegisterEvent() {//регистрируем эвент
        $this-&gt;AddEvent('index','EventIndex');

    }
protected function EventIndex() {//выполняем эвент

    }
}</code></pre><br/>
Пример плагина с подробными комментариями есть в AltoCMS 0.9.7.1 в папке /plugins/demo, в AltoCMS 1.0 /common/console/protected/plugin]]></description>
					<pubDate>Sat, 22 Mar 2014 21:37:17 +0400</pubDate>
									</item>
					</channel>
	</rss>
