سوال در مورد ارتباطات در Clistview

سلام دوستان

من برای قسمت نمایش هر شاخه

(category)

از سایتم میخوام محصولاتی که زیر مجموعه اون شاخه هستن رو نمایش بدم

یعنی وقتی کاربر این آدرس رو وارد میکنه تمام محصولاتی که فیلد

categoriesId

اون برابر 10 هست نمایش داده بشه :

localhost/shoping_cart/index.php?r=productCategories/view&id=10

جطور میتونم این کار رو انجام بدم؟ یعنی جطور تو

_view.php

با ارتباطات کار کنم؟

این کد مربوط به مدل

category

هست :




public function relations()

    {

        // NOTE: you may need to adjust the relation name and the related

        // class name for the relations automatically generated below.

        return array(

            'productCategoryParent' => array(self::BELONGS_TO, 'ProductCategories', 'product_category_parent_id'),

            'productCategories' => array(self::HAS_MANY, 'ProductCategories', 'product_category_parent_id'),

            'products' => array(self::MANY_MANY, 'Products', 'products_has_product_categories(product_categorie  s_product_category_id, products_product_id)'),

        );

    }



در ضمن pagination هم لازم دارم

ممنون میشم راهنمایی کنید