Answer the question
In order to leave comments, you need to log in
How to pass to controller action?
There is a controller customer
in it action
- add
(Magento1)
how to phtml
switch to this one from the button in action
?
I do it like this:
<form action="<?php Mage::getUrl('*/customer/add')?>">
<button class="add_product_button button" type="submit">add product</button>
</form>
Answer the question
In order to leave comments, you need to log in
What was expected?
What method does the form have, why is it not set?
Why should it change? Is there some functionality already added or are you waiting for magic?
For me, it’s so easy to make a link to an action, why do you need a form just to go to the controller’s action?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question