Jump to content
Larry Ullman's Book Forums

Renderpartial View From Module To Main Directory

Vipin Semwal

Recommended Posts

You need to do this:


1. Load the module (main.php):





2. autoloading model and component classes of the modules:





3. You will need to pass the model and others necessary data to the view (if required):


$mymodel = new NewModel;

$data['someData'] = 'Data';

echo $this->renderPartial('shop.views.products.addToCart', array('model'=>$mymodel,'data'=>$data));


I have same issue and I soled in this way in my application and its working.

  • Upvote 2
Link to comment
Share on other sites


  • Create New...