我需要做一个看起来像 website / user / username em>的网址< em> username em>来自数据库。 我试图通过在我的动作函数中放置一个$ user变量作为参数来达到它,结果看起来像 website / action?user = username em>。 但它看起来有点简洁和丑陋。 我怎样才能得到理想的结果? p> div>
I need to do an url address that looks like website/user/username where username is coming from database. I've tried to reach it by placing a $user variable in my action function as a parameter and result looks like this website/action?user=username. But it looks kind of hinty and ugly. How can I get a desirable result?