AjaxContent.php 441 B

12345678910111213141516171819
  1. <?php
  2. class UI_AjaxContent implements UITagInterface {
  3. /**
  4. * @param string $tagName = 'p5:AjaxContent'
  5. * @param array $props
  6. * @param array $childrens
  7. *
  8. * @return string html code
  9. */
  10. static function h($tagName, $props = [], $childrens = []) {
  11. if (empty($props['url'])) throw new Exception("Missing url!");
  12. // if (empty($props['url'])) throw new Exception("Missing url!");
  13. return UI::h('div', [], "loading...");
  14. }
  15. }