controller message to view

I’m confused, how can i trow a message from a controller to a view.

controller

if ($inic == $dtLoop) {

Yii::app()->clientScript->registerScript(

‘myShowEffect’,

‘$(".info").animate({opacity: 1.0}, 3000).fadeIn(“slow”);’,

CClientScript::POS_READY

);

$this->redirect(‘create’.’?cod_casa=’.$cod_casa);

}

or just echo sometext to the create view.

thanks

you should stick with the MVC approach and pass the info to the view and then render it in the view


$this->redirect('create',array('infoToDisplay'=>$info));

in the view file create.php


print $infoToDisplay;

this should get you started

can’t get the variable, i’m new to mvc and yii

i think i’ll stick with flash messages.