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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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
Results tagged with Search options user 87

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

0
votes
You can do the same thing in controller, by overriding its constructor and passing the ModuleDataSetupInterface as parameter. In general it seems to be best practice however to pass ModelFacotry to co …
answered Mar 25 '16 by Petar Dzhambazov
0
votes
This message means that MyPool\AttrProduct\Controller\Adminhtml\Product\Initialization\Helper\InterceptorCus has properties that do the same thing more or less and can be incompatible with one another …
answered Apr 6 '16 by Petar Dzhambazov
4
votes
In developer mode, M2 does not generate static files. It should create symlinks to them from the various modules. If you however have ran setup:static-content:deploy and have those files in place, it …
answered Mar 10 '16 by Petar Dzhambazov
1
vote
So when you have the case of Magento being served out of pub one solution to have access to setup is to configure an alias. To do that in apache, you may do something like the following. <VirtualHost …
answered Mar 2 '17 by Petar Dzhambazov
1
vote
As Jeeva Chezhiyan suggests you can run php bin/magento setup:static-content:deploy however if this is development site, you may want to switch to developer mode and have the static contents be up …
answered Oct 10 '17 by Petar Dzhambazov
14
votes
In your observer constructor do: public function __construct( \Magento\Framework\App\RequestInterface $request ) { $this->_request = $request; } Then in your code use $this->_request to fet …
answered Apr 13 '16 by Petar Dzhambazov
10
votes
If you want to use default logger but custom file for logging (or other custom logic) you need to use custom logger handler: class Logger extends Magento\Framework\Logger\Handler\Base { /** * @v …
answered Dec 3 '15 by Petar Dzhambazov
1
vote
6answers
Magento 2.0.2 installed from composer, when I try to navigate to Web Setup Wizard: http://mg2.com/admin_url/admin/backendapp/redirect/app/setup/ It takes me to http://mg2.com/setup which in turn produ …
asked Feb 15 '16 by Petar Dzhambazov
0
votes
1answer
I have a custom module that should show a grid in adminhtml with items that can be clicked and edited. adminhtml/routes.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.or …
asked Nov 26 '15 by Petar Dzhambazov
0
votes
Apparently running DI compilation fixes the problem. php -d memory_limit=1024M -f bin/magento setup:di:compile-multi-tenant did it for me in this case.
answered Nov 26 '15 by Petar Dzhambazov
4
votes
Resource models are the way models were handled in Magento 1 and are still available in Magento 2. Repositories are the way we are supposed to handle model storage and retrieval in Magento 2, but thei …
answered Mar 2 '17 by Petar Dzhambazov
1
vote
See how getCreatedAtFormatted is declared: public function getCreatedAtFormatted($format) { return $this->timezone->formatDateTime( new \DateTime($this->getCreatedAt()), $format, …
answered Apr 19 '16 by Petar Dzhambazov
0
votes
For both mass action and regular button you can use javascript to trigger a function, which can then collect whatever form values you want and submit them to server. This is the simplest way to go in …
answered Mar 28 '17 by Petar Dzhambazov