problem riderect in yii2.0

I have a method in SiteController

public static function say(){



when I call to that method ,redirect does not work ,the site is controlled by the act say faulty.

I tried it with multi ways,but all failed.

Help me !!! Thank you !!!

Chip93, try this


Thank you,I tried it,but it is not work.

What yii2-template do you use, basic or the advanced Yii2 template?? Normally the redirect works relative from the actual directory so you must realize yourself where you are standing in the tree at the moment the redirect is used.