Closed
Description
I think it's necessary to use Flyweight pattern for blocks in layout updates that does not have their own state information. In more cases when developer need only to display some template he uses a Mage_Core_Block_Template without any parameters for example
<block type="Mage_Core_Block_Template" name="my.banner" template="banners/some_banner.phtml" />
For such situation you can create "Context" object that will observe all parameters for block by his name. It can decrease usage of memory during displaying View part of system.
Metadata
Metadata
Assignees
Labels
No labels