Rewrite Url with urlManager in Yii

What must I do in order to shorten user's page url like: http://mydomain.com/XegbmCrY

I already set a string ID for each user.

Answers


You routes in main file should have a rule like this :-

'<name:[\w\_]+>' => 'user/view'

And your acionView in UserController should be like

public function actionView($name)

Need Your Help

Optimizing performance of morphological processing

java image-processing face-detection mathematical-morphology image-morphology

I am working in face detection using the YCbCr color space. When I apply it on a human face, there are gaps that denote the nose, eye and mouth and the resultant patch looks like (a). In order to ...

Why does Java HSQL throw an AbstractMethodError exception?

java exception jdbc hsqldb

I'm getting an AbstractMethodError exception from a GIS library using HSQL. I'm guessing this is caused by a configuration issue on my machine, but I'm not sure if its related to the JRE, or some o...