Is there a reliable way in magento to redirect to the last page.
I have a small form that i want to redirect to the previous page if an error occurred.
The form sits on the product page and redirects to another page when completed successfully. …
Suppose I've action URL abc/index/save and frontname abc is defined in my config file. When I hit abc/index/save it calls my action method. Where all frontname informations are stored? Does it searches for the given frontnames through config.xml…
is this possible? I'm using one controller for (almost) the same functionality for two different pages. Is it possible to distinguish the source of the request in order to vary functionality?
Note: This controller is used to process ajax calls.
Is it possible in magento to send parameter to controller form?
$x=987654;
$url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
$block->addButton('label', array(
"label" => "Get Label",
…
I'm newbie with Magento and I need something that probably it's very stupid. In a custom module I've got a controller and in that controller I want to read a variable. This variable is the products per page number. Does anybody know which helper or…
I need to override a controller (../Mage/Customer/controllers/AccountController.php) in order to enable user to upload a photo from "Account Information" form. I've manually created "photo" file upload field and added "enctype=multipart/form-data"…
A lot of Magento tutorials are using echo to output controller text.
However, using echo can cause weird problems, like the infamous “Headers already sent” error.
I understand that the right way to return response is by using setBody(), eg…
I'm trying to read a txt file with a controller that i've set up. However, I'm unsure where to place this file and how to call it correctly. Everything i've tried has resulted in the following error:
2015-01-21T13:57:02+00:00 ERR (3): Warning:
…
I am on Magento 2.1 and I have looked all over and cannot find how to accomplish what I'm looking for. I've followed a few guides (http://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/ etc) on how to create basic controllers and I…
I'm making a new page controller in my store, but the current configuration does not load the new block on the page. What is the probable error? And yes, I cleared the cache, and are disabled. The referent of my config.xml code is:
…