Uploaded Image Display In Main.php

Hi

I have a case where the logo and footer images defined in main.php can be uploaded and changed.

I wrote the following piece of code which worked fine in apache on linux. however when I deploy the code in xampp on windows, the images fail to display.

The code is :




	<?	

		$aliasPath = Yii::getPathOfAlias('application.upload');

                $imageUrl = Yii::app()->getAssetManager()->publish($aliasPath);

		echo CHtml::Image($imageUrl.'/logo.jpg','Client',array('width'=>'240')); 


	?>

the display in the browser shows

getAssetManager()->publish($aliasPath); echo CHtml::Image($imageUrl.’/logo.jpg’,‘Client’,array(‘width’=>‘240’)); ?>

the code should be




	<?php	

		$aliasPath = Yii::getPathOfAlias('application.upload');

                $imageUrl = Yii::app()->getAssetManager()->publish($aliasPath);

		echo CHtml::Image($imageUrl.'/logo.jpg','Client',array('width'=>'240')); 


	?>

to get it working.