0

I've tweaked around my yiitestapp and was able to display what was needed by making my own function and pages in views. However, I want to link those pages I have made on the menu bar. How do I override the url pathing?

For example, this line of code:

array('label'=>'Manage Chemicals', 'url'=>array('%2FGetChemicals')),

generates the address

localhost/yiitestapp/index.php?r=product_try/%2FGetApparatus

but I need the "/" away.

4

1 回答 1

0

为什么使用 %2F。

array('label'=>'Manage Chemicals', 'url'=>array('%2FGetChemicals')),

你可以这样做

array('label'=>'Manage Chemicals', 'url'=>array('/GetChemicals')),
于 2015-01-12T02:28:06.180 回答