CommonComponentTestController.php 396 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace TestApp\Controller;
  3. use Tools\Controller\Controller;
  4. /**
  5. * Use Controller instead of AppController to avoid conflicts
  6. */
  7. class CommonComponentTestController extends Controller {
  8. /**
  9. * @var string
  10. */
  11. public $name = 'MyController';
  12. /**
  13. * @var array
  14. */
  15. public $components = ['Tools.Common'];
  16. /**
  17. * @var array
  18. */
  19. public $autoRedirectActions = ['allowed'];
  20. }