I made the following change in the MessageController.php
class MessageController extends Controller
{
public function actionHelloworld()
{
$theTime = date("D M j G:i:s T Y");
$this->render('helloWorld',array('time'=>$theTime));
}
and following change in helloworld.php
<?php
$this->breadcrumbs=array(
'Message'=>array('message/index'),
'Helloworld',
);?>
<h1>Hello, World!</h1>
<h3><?php echo $time; ?></h3>
to display time.
but it throws the following exception:
CException
MessageController cannot find the requested view "helloWorld".
/var/www/yii/framework/web/CController.php(875)
863 {
864 if(($viewFile=$this->getViewFile($view))!==false)
865 {
866 $output=$this->renderFile($viewFile,$data,true);
867 if($processOutput)
868 $output=$this->processOutput($output);
869 if($return)
870 return $output;
871 else
872 echo $output;
873 }
874 else
875 throw new CException(Yii::t(‘yii’,’{controller} cannot find the requested view “{view}”.’,
876 array(’{controller}’=>get_class($this), ‘{view}’=>$view)));
877 }
878
could someone tell where is the error?