MySQL interesse |
|
Hallo ik zit met een probleem
ik heb in me controller het vogende staan:
$this->view->blockActions = array(
'block_action' => array('block lopende projecten', 'block laatste nieuws'),
'block_controller' => array('index', 'index'),
'block_module' => array('projects', 'news')
);
$this->view->blockActions = array( 'block_action' => array('block lopende projecten', 'block laatste nieuws'), 'block_controller' => array('index', 'index'), 'block_module' => array('projects', 'news') );
in mijn layout:
<?php foreach($this->blockActions['block_action'] AS $bAction) : ?>
<?php foreach($this->blockActions['block_controller'] AS $bController) : ?>
<?php foreach($this->blockActions['block_module'] AS $bModule) : ?>
<?php echo 'Block Action: '.$bAction.'<br />' ?>
<?php echo 'Block Controller: '.$bController.'<br />' ?>
<?php echo 'Block module: '.$bMvalue.'<br /><br />' ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?php foreach($this->blockActions['block_action'] AS $bAction) : ?> <?php foreach($this->blockActions['block_controller'] AS $bController) : ?> <?php foreach($this->blockActions['block_module'] AS $bModule) : ?> <?php echo 'Block Action: '.$bAction.'<br />' ?> <?php echo 'Block Controller: '.$bController.'<br />' ?> <?php echo 'Block module: '.$bMvalue.'<br /><br />' ?> <?php endforeach; ?> <?php endforeach; ?> <?php endforeach; ?>
en ik krijg het volgende als output:
Block Action: block lopende projecten
Block Controller: index
Block module: projects
Block Action: block lopende projecten
Block Controller: index
Block module: news
Block Action: block lopende projecten
Block Controller: index
Block module: projects
Block Action: block lopende projecten
Block Controller: index
Block module: news
Block Action: block laatste nieuws
Block Controller: index
Block module: projects
Block Action: block laatste nieuws
Block Controller: index
Block module: news
Block Action: block laatste nieuws
Block Controller: index
Block module: projects
Block Action: block laatste nieuws
Block Controller: index
Block module: news
Block Action: block lopende projecten Block Controller: index Block module: projects Block Action: block lopende projecten Block Controller: index Block module: news Block Action: block lopende projecten Block Controller: index Block module: projects Block Action: block lopende projecten Block Controller: index Block module: news Block Action: block laatste nieuws Block Controller: index Block module: projects Block Action: block laatste nieuws Block Controller: index Block module: news Block Action: block laatste nieuws Block Controller: index Block module: projects Block Action: block laatste nieuws Block Controller: index Block module: news
en dat klopt dus niet ik zou als output willen krijgen
Block Action: block lopende projecten
Block Controller: index
Block Module: projects
Block Action: block laatste nieuws
Block Controller: index
Block Module: news
Block Action: block lopende projecten Block Controller: index Block Module: projects Block Action: block laatste nieuws Block Controller: index Block Module: news
hoe kan ik dat oplossen?
|