View.php 507 B

123456789101112131415161718192021
  1. <?php namespace Manage\Api\Page;
  2. use Dever;
  3. use Manage\Lib\Page;
  4. # 详情页
  5. class View extends Page
  6. {
  7. public function __construct($load = '', $input = true, $id = false)
  8. {
  9. parent::__construct('view', $load, $input);
  10. }
  11. public function get()
  12. {
  13. $this->checkFunc();
  14. if (is_string($this->config)) {
  15. $data = Dever::call($this->config, [$this]);
  16. } else {
  17. $data = $this->config;
  18. }
  19. return $data;
  20. }
  21. }