I have three models named:
- content
- category
- contentCategory
and between content and category is a MANY_MANY relation like this:
public function relations()
{
return array(
'contents'=>array(self::MANY_MANY, 'Content',
'tbl_content_category(category_id, content_id)',
'order'=>'contents.id DESC',
'limit'=>'10',
'offset'=>'30',
),
);
}
and it work well. but I want to set offset parameter from $_GET variables. how can I do this?
Just set