

<div class="apartment-description-item">
        <?php
            if ($data->images) {
                $this->widget('application.modules.gallery.FBGallery', array(
                    'images' => $data->images,
                    'pid' => $data->id,
                    'userType' => $usertype,
                  
                ));
            }
        ?>
    </div>

<div class="imageItem" style="height: <?php echo $this->galleryConfig['thMaxHeight']; ?>px">
        <a class="gImg" rel="img-gallery<?php //echo $this->item['rel'];?>" title="<?php echo $this->item['title'];?>" href="<?php echo $this->item['urlImg'];?>">
            <img src="<?php echo $this->item['imgSrc'];?>" alt="<?php echo $this->item['title'];?>" width="<?php echo $this->item['thFileWidth']; ?>" height="<?php echo $this->item['thFileHeight']; ?>" />
        </a>
    </div>




$this->item->objType->getStrByLang('name'); public function relations() {
        Yii::import('application.modules.apartmentObjType.models.ApartmentObjType');
        Yii::import('application.modules.apartmentCity.models.ApartmentCity');
        $relations = array(
            'objType' => array(self::BELONGS_TO, 'ApartmentObjType', 'obj_type_id'),
            'city' => array(self::BELONGS_TO, 'ApartmentCity', 'city_id'),
            'windowTo' => array(self::BELONGS_TO, 'WindowTo', 'window_to'),
            'images' => array(self::HAS_ONE, 'Galleries', 'pid'/*, 'select' => 'imgsOrder'*/),
            'comments' => array(self::HAS_MANY, 'Comment', 'apartment_id',
                'on' => 'comments.active = '.Comment::STATUS_APPROVED,
                'order' => 'comments.id DESC',
            ), 

Вернуться в Вопросы и помощь по изменениям
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 68