2

Is there any way to pass a parameter to controller from menu.xml file?

Actual URL :

http://127.0.0.1/mg231/admin/vendor/module/index/key/2c0a132c4b44051ec129440f763a45327b53b5ed09706c4f8d86b9a56c1d7c60/

Expected URL :

http://127.0.0.1/mg231/admin/vendor/module/index/key/2c0a132c4b44051ec129440f763a45327b53b5ed09706c4f8d86b9a56c1d7c60/customparam/value
  • What parameter you want to add can you elaborate? in url something like ?id=1 – Prachi Saxena May 15 at 12:22
  • @PrachiSaxena I want to pass string parameter to controller action which is called from admin menu. – Emipro Technologies Pvt. Ltd. May 15 at 12:25
  • Can you give example? so i can get better idea – Rutvee Sojitra May 15 at 12:30
  • @RutveeSojitra #PrachiSaxena Please check my updated question. – Emipro Technologies Pvt. Ltd. May 15 at 12:37
  • 1
    if you want static parameter you can write action like below: action="test/index/index/custom/parameter" it will work @EmiproTechnologiesPvt.Ltd. – Rutvee Sojitra May 15 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.