Controller cannot find view


I am currently getting this message.

MailController cannot find the requested view "subscribe".

when i try to access this url


Now, there is a folder called ‘mail’ under views containing subscribe.php

my controller

public function actionSubscribe(){







Can somebody tell me what’s wrong?


you are calling the "newsletter/subscribe" action so I guess that your controller is "NesletterController"… in that case the subscribe.php view should be under "views/newsletter"

oh yeah thank you very much

that’s right, that was really helpfull