RubikCube.php 485 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\component\controller;
  3. /**
  4. * 魔方·组件
  5. */
  6. class RubikCube extends BaseDiyView
  7. {
  8. /**
  9. * 前台输出
  10. */
  11. public function parseHtml($attr)
  12. {
  13. if (!empty($attr['diyHtml'])) {
  14. $attr['diyHtml'] = str_replace("&quot;", '"', $attr['diyHtml']);
  15. }
  16. $this->assign("attr", $attr);
  17. return $this->fetch('rubik_cube/rubik_cube.html');
  18. }
  19. /**
  20. * 后台编辑界面
  21. */
  22. public function design()
  23. {
  24. return $this->fetch("rubik_cube/design.html");
  25. }
  26. }