Load single model
Posted: Tue Mar 29, 2011 9:02 pm
Hey all,
Quick question, I've been searching for this for a few hours now.
How can I load an individual model in the html view? For example, I want to load 'latest products' on a specific place on the homepage.
Right now there is this code:
But I want something like this:
Is this possible? Thanks!
Quick question, I've been searching for this for a few hours now.
How can I load an individual model in the html view? For example, I want to load 'latest products' on a specific place on the homepage.
Right now there is this code:
Code: Select all
<?php foreach ($modules as $module) { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
Code: Select all
<?php foreach ($modules as $module) { ?>
<?php echo ${$module['code']['latest']}; ?>
<?php } ?>