Index.php 641 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *------Create thems Controller------
  4. *------SCWPHP Version 1.0.0------
  5. *------Dev Model Jions------
  6. *------Create Time 2017-06-22 10:24:14------
  7. */
  8. namespace App\Home\Controller;
  9. class Index extends BaseController {
  10. public function Index() {
  11. // \View::addExtension('html','php');
  12. // echo View()->file(public_path().'/web/index.html');
  13. // dd(public_path());
  14. // header('location:/web/index.html');
  15. $this->display();
  16. }
  17. function redirect(){
  18. $uri=isset($_GET['uri']) && !empty($_GET['uri'])?trim($_GET['uri']):'';
  19. if(empty($uri)){
  20. header('location:/');
  21. }
  22. header('location:'.$uri);
  23. }
  24. }