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.

22 lines
524 B

11 years ago
13 years ago
13 years ago
13 years ago
  1. <?php namespace Majestic\App;
  2. /**
  3. * @copyright NetMonsters <team@netmonsters.ru>
  4. * @link http://netmonsters.ru
  5. * @package Majestic
  6. * @subpackage app
  7. * @since 2010-02-25
  8. */
  9. abstract class StaticAction extends Action
  10. {
  11. protected function getTemplate()
  12. {
  13. $template = ($this->template) ? $this->template : substr(get_class($this), 0, -6 /*strlen('Action')*/);
  14. return '/static/' . $template;
  15. }
  16. public function fetch()
  17. {
  18. return $this->view->fetch($this->getTemplate());
  19. }
  20. }