<?php
$carouselWidget = $this->beginWidget('ext.carouFredSel.CarouFredSel', array(
    'options' => array('direction' => "left", // The direction to scroll the carousel. Possible values'=> "right", "left", "up" or "down".
        'align' => false, // The width of the carousel. Can be null (width will be calculated), a number, "variable" (automatically resize the carousel when scrolling items with variable widths), "auto" (measure the widest item) or a percentage like "100%" (only applies on horizontal carousels)
        'scroll' => array(
            'items' => 1,
            'duration' => 5000,
            'timeoutDuration' => 0,
            'easing' => 'linear',
            'pauseOnHover' => 'immediate'
        ),)
        ));
?>

<div id="<?php echo $carouselWidget->getId(); ?>">

    <?php foreach ($carousel->sliderImages as $image): ?>

        <?php $path = Yii::app()->params['uploadUrl'] . get_class($image) . '/'; ?>
        <img width="150" src="<?php echo $path . $image->image; ?>" alt="" />

    <?php endforeach; ?>

</div>

<?php $this->endWidget(); ?>