How about Friendly URL's? how can i use?

Im new at Yii and studying it i've seen that it works by passing in a explicit way the URL that represents controller and actions (as CakePHP also does).

it is known as "route"

it is widely used in MVC based frameworks.

but if i wanna use a Friendly URL?

is there any way to implement it without extra coding?

Friendly URL's is a very efficient ways to improve what we call of SEO.

for instance

instead of using this address

http://mydomain/index.php?r=user/list

i could use

http://mydomain/allusers

any ideas? ;)

Have you read this? http://www.yiiframew…uide/topics.url

Please refer to http://www.yiiframew…uide/topics.url

BTW, you should read the Yii Guide first.

Quote

Please refer to http://www.yiiframew...uide/topics.url

BTW, you should read the Yii Guide first.

yes, i have.

sorry if i wasnt clear enough. actualy i wanst!

so, what I mean…i think it's better to do it by ReWriteRulles from Apache instead of coding via Yii (via URL Management).

I'd leave the URL as it is and I'd create Friendly rewrite rules on apache.

is it the best solution? im afraid about an overhead of leaving yii taking this task.

Your concern is reasonable. Creating too many routing rules in Yii (or any other frameworks) will degrade your application performance. This is really a trade-off between performance and functionality.

The benefit of using URL rules in Yii is that it offers you two-way URL management: URL parsing and URL creation. Apache rewriting is only for URL parsing, so are most other frameworks.

As a result, Yii developers can always create URLs in the same form: createUrl($route, $params). And the generated URLs can be changed easily to different SEO-friendly forms by changing the URL rules. They no longer need to hardcode URLs in their code.