$this->render('show',array('message'=>$message));

$this->render(‘show’,array(‘message’=>$message));

I am trying to display "hello world" string using the above statement.

my total code of the MessageController is :

<?php

class MessageController extends Controller

{

		public function actionShow()


		{


		


			// create a new instance of MessageForm model 


			&#036;message=new MessageForm; 


			


			/* 


			* check to see if the MessageForm fields were filled in 


			*  


			* If they were, then print out the message and author 


			* with the show render - based on what the user inputted 


			*  


			* If not, then print out the default hellow world and  


			* default author with the show render. 


			*/  


				if(isset(&#036;message-&gt;message)) 									


				&#036;this-&gt;render('show',array('message'=&gt;&#036;message)); 


				else 


					{ 


									


						&#036;message-&gt;message = &quot;Hello World&quot;; 					


						&#036;message-&gt;author = &quot;Default Author&quot;; 


						&#036;this-&gt;render('show',array('message'=&gt;&#036;message));


					}


				public function actionError()


				{


					if(&#036;error=Yii::app()-&gt;errorHandler-&gt;error)


						{


							if(Yii::app()-&gt;request-&gt;isAjaxRequest)


								echo &#036;error['message'];


							else


								&#036;this-&gt;render('error', &#036;error);


						}


				}


			


	 public function actionEdit()


		 {


			// create a new instance of MessageForm model 


			&#036;message=new MessageForm; 


			/* 


			* check to see if All the fileds are filled in on the form 


			* if so proceed to assign the values to the variables in the message model (author and message) 


			*  


			* If they validate (no errors) then render the show page with the new data values 


			*  


			* If there's errors, return to the edit form showing the errors 


			*  


			* Finally if the form wasn't set then we render the edit page so that the user can input field values.  


			*/ 


			if(isset(&#036;_POST['MessageForm'])) 


				{ 


					&#036;message-&gt;attributes=&#036;_POST['MessageForm']; 


					if(&#036;message-&gt;validate()) 


						&#036;this-&gt;render('show',array('message'=&gt;&#036;message)); 


					else  


						&#036;this-&gt;render('edit', array('message'=&gt;&#036;message)); 


				}


				else 


					&#036;this-&gt;render('edit', array('message'=&gt;&#036;message)); 


	}


	


	public function actionIndex()


		{


			&#036;this-&gt;render('index');


		}


		public function actionSubmit()


		{


			&#036;this-&gt;render('index');


		}


}








      can anyone help me plzzzzzzzzzzzzzzzz

Please apply pretty formatting to your code - it’s hard to read it…

[ code]

…your code …

[ /code]

Non-format code blows my head.

Click on <> icon in the editor and put your code inside.




<?php

   public function ezToRead()

   {

 

   }

?>