Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php
  2. namespace EddcaponeMyExtensionController;
  3.  
  4. /**
  5. * CustomController
  6. */
  7. class CustomController extends TYPO3CMSExtbaseMvcControllerActionController
  8. {
  9.  
  10. /**
  11. * action list
  12. *
  13. * @return void
  14. */
  15. public function confirmAgbAction()
  16. {
  17. echo "<p>HALLO WELT</p>";
  18. }
  19. }
  20.  
  21. <?php
  22. if (!defined('TYPO3_MODE')) {
  23. die('Access denied.');
  24. }
  25.  
  26. TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
  27. 'Eddcapone.' . $_EXTKEY,
  28. 'Myfilelist',
  29. array(
  30. 'Category' => 'list,show',
  31. 'File' => 'show',
  32. 'Download' => 'download',
  33. 'Custom' => 'confirmAgb'
  34. ),
  35. // non-cacheable actions
  36. array(
  37. 'Category' => 'list,show',
  38. 'File' => 'topFive',
  39. 'Download' => 'download',
  40. 'Custom' => 'confirmAgb'
  41. )
  42. );
  43.  
  44. <f:link.action controller="Custom" action="confirmAgb" pluginName="Myfilelist" class="mbButton">Download</f:link.action>
  45.  
  46. plugin.tx_yourextensionmvc.callDefaultActionIfActionCantBeResolved = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement