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.

24 lines
543 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. * @version SVN: $Id$
  9. * @filesource $URL$
  10. */
  11. abstract class StaticAction extends Action
  12. {
  13. protected function getTemplate()
  14. {
  15. $template = ($this->template) ? $this->template : substr(get_class($this), 0, -6 /*strlen('Action')*/);
  16. return '/static/' . $template;
  17. }
  18. public function fetch()
  19. {
  20. return $this->view->fetch($this->getTemplate());
  21. }
  22. }