|
|||
|
Hey everyone,
Im kinda new here so ill do this the best i can. Thing is im trying to send some params through a link i.e. i wanna do something like this : Code:
<a href='mycontroller/validation.php?param=1'>this is the link</a> Code:
<a href='mycontroller/doValidation'>this is the link</a> The question is fairly simple, How can i pass variables like in the first example i mean should i do something like this? Code:
<a href='mycontroller/doValidation?param=1'>this is the link</a> Best regards. Jmc. |
|
|||
|
hi
for your example you can do the following. <a href='mycontroller/doValidation?param=1'>this is the link</a> to <a href='mycontroller/doValidation/param/1'>this is the link</a> or example.com/controller/action/param1/value1/param2/value2 etc... go on and on... the value can then be retrieved with $this->_getParam('param1'); in the action function. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|