Hello, I used:
Hole-punching Dynamically Created Blocks From A Template
For create a private block and I want to send a variable to created block like this:
$litemage_attr = array('litemage_dynamic' =>
array('tag' => 'wishlistGroup', 'access' => 'private', 'type' => 'wishlist/wishlistGroup',
'template' => 'wishlist/wishlistGroup.phtml'));
$this->getLayout()->createBlock('wishlist/wishlistGroup', 'wishlistGroup',
$litemage_attr)->setProduct($_product)->setTemplate('wishlist/wishlistGroup.phtml')->toHtml();
But I couldn't, please help me.
Also I used this:
$this->getChild('wishlistGroup')->setProduct($_product);
echo $this->getChildHtml('wishlistGroup',false);
But this is not work too.
Hole-punching Dynamically Created Blocks From A Template
For create a private block and I want to send a variable to created block like this:
$litemage_attr = array('litemage_dynamic' =>
array('tag' => 'wishlistGroup', 'access' => 'private', 'type' => 'wishlist/wishlistGroup',
'template' => 'wishlist/wishlistGroup.phtml'));
$this->getLayout()->createBlock('wishlist/wishlistGroup', 'wishlistGroup',
$litemage_attr)->setProduct($_product)->setTemplate('wishlist/wishlistGroup.phtml')->toHtml();
But I couldn't, please help me.
Also I used this:
$this->getChild('wishlistGroup')->setProduct($_product);
echo $this->getChildHtml('wishlistGroup',false);
But this is not work too.