Urlmanager - Grab Rules From Db Table

Hey everyone!

How can I grab urls for CUrlManager from db table?

What if I create a class "ExUrlManager extends CUrlManager" and do the following:

public function init()


   //prepare $rules;

   $this->rules = $rules;



Would that be good?

To specify URL rules, we need to configure the rules property of the urlManager application component:















Or maybe you can try below page: using custom url rule :