Custom Url Rule Classes

I have try to use custom-url-rule-classes from this guide

But i get an error : Undefined offset: 0

See on my attachment…

i have an application that save user information,

and i need every user can access from : http::/localhost/app/username

if i do not use custom url rule classes, i will get error 404

is there anyone can help me for this problem ?





Try with this urlmanager and send me the feedback











thank you for your reply chandran… :)

but i need config my urlmanager like this :


i have user account table, when user access that url so user account profile will be display… same like facebook profile url :

how to config urlmanager to manage this. i have try guide

but i get error like my attachment in first reply…

please… anyone can help me… :(