Answer the question
In order to leave comments, you need to log in
How to pass an array to a view in Yii1.1?
How to pass an array to a view? I didn't find it in the documentation. This is how it doesn't work:
public function actionAdd($id)
{
$a = array(1,1);
$this->render('add', array(
'a'=>$a
));
}
$this->render('add', $a);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question