Guest User

Untitled

a guest
Apr 23rd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <?php
  2.  
  3. require_once 'Mage/Contacts/controllers/IndexController.php';
  4.  
  5. class Mynamespace_CustomContacts_IndexController extends Mage_Contacts_IndexController {
  6.  
  7. protected function indexAction () {
  8. die;
  9. }
  10. }
  11.  
  12. <config>
  13. <frontend>
  14. <routers>
  15. <contacts>
  16. <args>
  17. <modules>
  18. <Mynamespace_CustomContacts before="Mage_Contacts">Mynamespace_CustomContacts</Mynamespace_CustomContacts>
  19. </modules>
  20. </args>
  21. </contacts>
  22. </routers>
  23. </frontend>
  24. </config>
  25.  
  26. <?xml version="1.0"?>
  27. <config>
  28. <modules>
  29. <Mynamespace_CustomContacts>
  30. <version>0.1.0</version>
  31. </Mynamespace_CustomContacts>
  32. </modules>
  33. <frontend>
  34. <routers>
  35. <contacts>
  36. <args>
  37. <modules>
  38. <Mynamespace_CustomContacts before="Mage_Contacts">Mynamespace_CustomContacts</Mynamespace_CustomContacts>
  39. </modules>
  40. </args>
  41. </contacts>
  42. </routers>
  43. </frontend>
  44. </config>
  45.  
  46. <modules>
  47. <Mynamespace_CustomContacts>
  48. <version>1.0.0</version>
  49. </Mynamespace_CustomContacts>
  50. </modules>
  51.  
  52. <Mynamespace_CustomContacts before="Mage_Contacts">
  53. Mynamespace_CustomContacts
  54. </Mynamespace_CustomContacts>`
  55.  
  56. <mynamespace_customcontacts before="Mage_Contacts">
  57. Mynamespace_CustomContacts
  58. </mynamespace_customcontacts>`
Add Comment
Please, Sign In to add comment