News are coming

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@38 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
akulikov
2008-12-29 12:42:57 +00:00
parent bf6a6e2e67
commit 83d25fa24b

View File

@ -1,16 +1,16 @@
<?php <?php
/** /**
* Рутовый класс для любого действия. * Рутовый класс для любого действия.
* Описывает основной функционал для работы с классами действий. * Описывает основной функционал для работы с классами действий.
* *
* @copyright * @copyright
* @link * @link
* @package Majestic * @package Majestic
* @subpackage Action * @subpackage Action
* @since * @since
* @version SVN: $Id$ * @version SVN: $Id$
* @filesource $URL$ * @filesource $URL$
*/ */
abstract class Action abstract class Action
{ {
public $template; //шаблон действия public $template; //шаблон действия
@ -44,8 +44,9 @@ abstract class Action
*/ */
public function display() public function display()
{ {
$this->templater = Load::templater(ACTION_TPL_PATH.'/'.$this->template_dir); $this->templater = Load::templater();
$this->prepare(); $this->prepare();
$this->templater->setPath(ACTION_TPL_PATH.'/'.$this->template_dir);
return $this->templater->fetch($this->template.'.tpl'); return $this->templater->fetch($this->template.'.tpl');
} }