controller extender cannot render view.

I have a controller extension in extensions folder. But when i run it, I got a messager : "cannot find the requested view "index".

But my views folder has a index.php.

help me to fix it! thank so much.




Stack Trace

#0 	

+

 D:\source\framework\web\CController.php(779): CController->renderPartial("index", null, true)

#1 	

–

 D:\wamp\www\webapp\protected\extensions\Long\CateController.php(12): CController->render("index")


07         $this->render('New');

08     }

09 

10     public function actionIndex()

11     {

12         $this->render('index');

13     }

14 

15     // -----------------------------------------------------------

16     // Uncomment the following methods and override them if needed

17     /*


#2 	

+

 D:\source\framework\web\actions\CInlineAction.php(50): CateController->actionIndex()

#3 	

+

 D:\source\framework\web\CController.php(300): CInlineAction->runWithParams(array())

#4 	

+

 D:\source\framework\web\CController.php(278): CController->runAction(CInlineAction)

#5 	

+

 D:\source\framework\web\CController.php(257): CController->runActionWithFilters(CInlineAction, array())

#6 	

+

 D:\source\framework\web\CWebApplication.php(277): CController->run("")

#7 	

+

 D:\source\framework\web\CWebApplication.php(136): CWebApplication->runController("Long")

#8 	

+

 D:\source\framework\base\CApplication.php(158): CWebApplication->processRequest()

#9 	

–

 D:\wamp\www\webapp\index.php(13): CApplication->run()


08 defined('YII_DEBUG') or define('YII_DEBUG',true);

09 // specify how many levels of call stack should be shown in each log message

10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

11 

12 require_once($yii);

13 Yii::createWebApplication($config)->run();




Where is the view file located views/controllername/index.php or extensions/long/views/controllername/index.php ?

Or to better define the question: Where should the view for this controller be placed? :)