Last active
January 4, 2016 04:39
-
-
Save masarliev/8569881 to your computer and use it in GitHub Desktop.
ZF2 Placeholder content from Controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-sm-12"> | |
<?php echo $this->placeholder('header');?> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @var $helper \Zend\View\Helper\Placeholder */ | |
$helper = $this->getServiceLocator()->get('viewhelpermanager')->get('placeholder'); | |
$header = $helper->getContainer('header'); | |
$header->append('Some Content'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment