Yii Framework Forum: Make CUrlManager::$_rules public/protected - Yii Framework Forum

Jump to content

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

Make CUrlManager::$_rules public/protected Why on earth is this private? Rate Topic: -----

#1 User is offline   twisted1919 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 634
  • Joined: 23-October 10
  • Location:Romania

Posted 28 May 2012 - 01:35 PM

I have a use case where because of I18N i need to dynamically add over 50 url rules at the begining of the request.
I use Yii::app()->urlManager->addRules($rules,false) to push them at the beginning of the rules chain.
Now, i want to cache these rules because it has no use to process these each time.
How should i do this if CUrlManager::$_rules is private ?
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