Add namespace.
This commit is contained in:
23
App/StaticAction.php
Normal file
23
App/StaticAction.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php namespace Majestic\App;
|
||||
/**
|
||||
* @copyright NetMonsters <team@netmonsters.ru>
|
||||
* @link http://netmonsters.ru
|
||||
* @package Majestic
|
||||
* @subpackage app
|
||||
* @since 2010-02-25
|
||||
*/
|
||||
|
||||
abstract class StaticAction extends Action
|
||||
{
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user