magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Do not use _addContent in controllers

Open ihor-sviziev opened this issue 12 years ago • 3 comments

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

ihor-sviziev avatar Oct 21 '14 09:10 ihor-sviziev

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

verklov avatar Nov 08 '14 22:11 verklov

Internal ticket: MAGETWO-30487

vpelipenko avatar Jan 29 '15 12:01 vpelipenko

Thank you for your submission.

We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues.

Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).

We are closing this GitHub ticket and have moved your request to the new forum.

piotrekkaminski avatar Aug 30 '16 20:08 piotrekkaminski