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
500 B

13 years ago
13 years ago
13 years ago
  1. <?php
  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. }