Yii Framework Forum: How To Configure Cache Filter For Simple Action File? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Configure Cache Filter For Simple Action File? Rate Topic: -----

#1 User is offline   MR.Ton 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 06-February 12

Posted 24 January 2013 - 10:56 AM

hi,i hope that configure cache filter for simple action file, how to do? the code like:
class pinyinpickerAction extends CAction
{
public function run()
{
//code
}
}

i found the cache filter in control file in yii doc is:
public function filters()
{
return array(
array(
'COutputCache',
'duration'=>100,
'varyByParam'=>array('id'),
),
);
}

but i don't know how to configure in simple action file, thks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users