You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
558 B
25 lines
558 B
<?php
|
|
/**
|
|
* @copyright NetMonsters <team@netmonsters.ru>
|
|
* @link http://netmonsters.ru
|
|
* @package Majestic
|
|
* @subpackage app
|
|
* @since 2010-02-25
|
|
* @version SVN: $Id$
|
|
* @filesource $URL$
|
|
*/
|
|
|
|
abstract class StaticViewAction extends ViewAction
|
|
{
|
|
|
|
protected function getTemplate()
|
|
{
|
|
$template = ($this->template) ? $this->template : substr(get_class($this), 0, -6/*strlen('Action')*/);
|
|
return '/static/' . $template;
|
|
}
|
|
|
|
public function fetch()
|
|
{
|
|
return $this->view->fetch($this->getTemplate());
|
|
}
|
|
}
|