controller name in widget or portlet


I’m trying to create a Menu widget, but the links will change every time depending on the controller/action (and if the user is logged in… etc)

(so far I've created a default portlet and a Menu class but I can't access the controller…)



Take a look at the MainMenu.php which comes bundled in a Yii application under protected/components

It's just what you need

sorry, I’m an idiot :) thanks