cancel
Showing results for 
Search instead for 
Did you mean: 

Do not use _addContent in controllers

0 Kudos

Do not use _addContent in controllers

Feature request from ihor-sviziev, posted on GitHub Oct 21, 2014

From Magento 1.x we have a lot controllers that use _addContent. This method is fires after running loadLayout. As result we haven't ability to use action directive from layout files to use some manipulations, as example change template file for block (described there).

I propose mark this method as deprecated and replace same places to layout updates.

List of this places: https://github.com/magento/magento2/search?q=_addContent

3 Comments
Not applicable
Status changed to: Investigating
 
Not applicable

Comment from verklov, posted on GitHub Nov 08, 2014

Thanks for your suggestion! We will review it and get back to you once we have the answer.

Not applicable

Comment from vpelipenko, posted on GitHub Jan 29, 2015

Internal ticket: MAGETWO-30487