LogoHelper::render PHP Method

render() public method

Renders the template
public render ( $template = '//base/_logo' ) : mixed
$template
return mixed
    public function render($template = '//base/_logo')
    {
        return Yii::app()->controller->renderPartial($template, array('logo' => $this->getLogo()), true);
    }

Usage Example

Esempio n. 1
0
 * @copyright Copyright (c) 2011-2013, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
$logoHelper = new LogoHelper();
?>
<div class="print-form-div">
	<?php 
if (@$copy) {
    ?>
		<div class="watermark">
			<img src="<?php 
    echo $this->assetPath . '/img/copy_for_' . $copy . '.png';
    ?>
"/>
		</div>
	<?php 
}
?>
	<div class="banner clearfix">
		<?php 
echo $logoHelper->render('letter_head');
?>
	</div>
	<?php 
$this->renderPartial('_address', array('site' => $this->site));
?>
	<?php 
$this->renderOpenElements($this->action->id, null, array('copy' => @$copy));
?>
</div>
All Usage Examples Of LogoHelper::render