M
M
Maybe_V2016-07-14 12:58:34
PHP
Maybe_V, 2016-07-14 12:58:34

How to pass to controller action?

There is a controller customerin it action- add(Magento1)
how to phtmlswitch 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>

The page loads but remains as it was!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2016-07-14
@ThunderCat

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?

I
imdeveloper, 2016-07-18
@link_web

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 question

Ask a Question

731 491 924 answers to any question