piribipipi Posted March 21, 2019 Share Posted March 21, 2019 I want to create a module link using smarty, if the module link dont need params, its ok, it would be something like: {$link->getModuleLink('module_name', 'controller_name')|escape:'html':'UTF-8'} but i need to send some parameters to the function... is that possible using smarty???? (i dont have problems using php). Something like: {$link->getModuleLink('module_name', 'controller_name', array('param1' => 'value1', 'param2' => 'value2'))|escape:'html':'UTF-8'} But im obtaining a smarty error... Any idea?? Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted March 22, 2019 Share Posted March 22, 2019 Try {$link->getModuleLink('module_name', 'controller_name', ['param1' => 'value1', 'param2' => 'value2'])|escape:'html':'UTF-8'} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now