I can not use the variables specified in the controller in the corresponding view. Here is my code:
public function actionHelloWorld() { $this->render('helloWorld',array('var'=>'this is me')); }
In helloWorld.php (view file):
<h1>Hello, World!</h1> <h3><?php echo $var; ?></h3>
It only displays βHello, World!β, It looks like this: $ var is not available in the view. Is anyone
source share