Action.php 459 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Action
  4. */
  5. namespace Qii\Base;
  6. class Action extends Controller
  7. {
  8. public $controllerId;
  9. public $actionId;
  10. public $response;
  11. public function __get($name) {
  12. if (property_exists($this->controller, $name)) {
  13. return $this->controller->$name;
  14. }
  15. }
  16. public function __call($method, $args)
  17. {
  18. return call_user_func_array(array($this->controller, $method), $args);
  19. }
  20. }