Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Denotes questions about controllers and action methods
0
votes
1
answer
843
views
Display header and footer in controller method
In my controller method I am printing one simple message.
public function indexAction()
{
echo "Hello,, Welcome to IndexController...";
}
But, that message is displaying on a blank pa …
3
votes
2
answers
9k
views
Insert records to database table via controller method [closed]
Can anyone tell me how to insert records to database table via controller method?
0
votes
2
answers
1k
views
Display static block data in controller method
Hello,
I have created one static block.
I want to display data from that static block in my controller method.
Here is my controller method:
<?php
class NameSpace_Module_IndexController extends Mag …
12
votes
1
answer
49k
views
How to make a simple ajax call in Magento 2.1.0
I have added a simple button in one of my phtml file.
<input type='button' name='emq_zip_btn' class='emq_zip_btn' value='Go'>
I have added one custom js file ("emq.js") from a custom module (Ved_M …
0
votes
1
answer
232
views
Display header in controller method
Is there any way to display header and footer in controller method without using
$this->loadLayout();
$this->renderLayout();
these two lines in a controller method.
I have created one template file …
2
votes
2
answers
6k
views
How to update order grand total via controller in Magento 2.2.2?
I am trying to update the order's grand total via a controller.
Here is my controller's code:
<?php
namespace Company\Vendor\Controller\Index;
use Magento\Framework\App\Action\Action;
use Magento\ …
0
votes
1
answer
626
views
Send JSON response from Magento\Wishlist\Controller\Index\Add controller in Magento 2.2.2
I am trying to override Magento\Wishlist\Controller\Index\Add controller's execute() method to return a JSON response.
I have created a after plugin for it.
Vendor\Company\etc\frontend\di.xml:
<?xm …