Controller.php 377 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace daswork;
  3. use daswork\View;
  4. class Controller
  5. {
  6. protected $view;
  7. public function __construct()
  8. {
  9. $this->view = new View();
  10. }
  11. public function fetch($file = "")
  12. {
  13. return $this->view->fetch($file);
  14. }
  15. public function assign($name, $value)
  16. {
  17. return $this->view->assign($name, $value);
  18. }
  19. }