Questions tagged [controllers]
Denotes questions about controllers and action methods
986 questions
0 votes
2 answers
206 views
Magento2 - Replicate admin login in custom controller
We have been struggling with this during last days If we try a frontend controller replicating the same code Magento fires when authenticating an admin user then we always end with session/cookies ...
0 votes
0 answers
41 views
Add Change Email button below Change Password button in Magento 2 /customer/account page
In my magento 2 /customer/account page i have added a button to give the customers the option to change their Email. There is already a button to change password. When i click on "Change Email&...
1 vote
1 answer
57 views
How magento handle new request on "*/*/ "?
This my request NewAction.php to handle the request this is result of request I don't have blog_post_new layout, How it will work ?
0 votes
1 answer
42 views
Create cutom router for redirecting to homepage || Magento 2
In Magento 2, I want to set custom route, like after baseurl/custom-route/any url it should be redirected to homepage or base url. Here, I had tried to create type of RouterList and extend ...
1 vote
1 answer
73 views
Having trouble refactoring Submit Index class that extends deprecated Magento\Framework\App\Action\Action;
<?php namespace Alex\AskQuestion\Controller\Submit; use Alex\AskQuestion\Model\AskQuestionFactory; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\...
0 votes
1 answer
65 views
Argument 5 passed to Vendor\Module\Model\ResourceModel\PriceResult\Collection\Interceptor::__construct()
I have created a custom module and it's working fine,if I only run php bin/magento setup:upgrade command. However, when I attempt to run php bin/magento s:d:c it raises an exception. Type Error ...
0 votes
2 answers
176 views
Email already exist in db validation
I need help on to correct my implementation on validating the email if it's already exists. Anyone knows what's wrong with my code? It is not validating this part. It will save even if the email ...
0 votes
1 answer
245 views
How to add Progress Bar in Save Controller Magento2?
I wanted to add a progress bar while the code in Save controller is executing on Clicking Save Button in Ui_component Form in Magento2? How Can I implement this Thanks !!