Controller.php 303 B

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