licass
(L R M D)
1
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
bettor
(Live Webscore)
2
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
licass
(L R M D)
3
can’t get the variable, i’m new to mvc and yii
i think i’ll stick with flash messages.