I'm trying to populate a drop down list from a table called supplier_table but I'm currently trying to do this within the view/create of a system_user table. I'm not quite sure how to use different models within a page.
This is my code from the create page:
<?php $this->renderPartial('_form', array('model'=>$model,
//(>w<) for dropdown
'companyval'=>$companyval)); ?>
Problem is that $companyval is from a different model and currently, the model that is being used for this page is the one for this particular "create".
I'm not sure I explained it clearly, but if you have any questions, just comment.