Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Renderpartial Problem

$
0
0
Hi,

I have hard time figuring out why data I pass through renderPartial is not available in my viewFile. Here's my code:

<?php 
$this->renderPartial('submitProjectForm', array('categoryModel'=> $categoryModel, 'budgetRangeModel'=>$budgetRangeModel, 'preselecedId'=>1));

$this->renderPartial('oneLineCategories', array('activeColumnNr'=>1));
?>


The first call to renderPartial works as expected, all the variables are available and shown when debugging.

The second call which just sends an integer is the problem. I have no possibility to use or see $activeColumnNr in the view file. When I try to use it I get the "Undefined variable" error.

Any idea what might be the cause?

Cheers!
OM

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>