Controller cannot find view

Hello,

I am currently getting this message.

MailController cannot find the requested view "subscribe".

when i try to access this url

http://localhost/…/newsletter/subscribe

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

my controller




public function actionSubscribe(){

        .

        .

        .

        .

          $this->render('subscribe');

    }



Can somebody tell me what’s wrong?

thanks

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