I need to run in my zend project, inside a controller something like:
<?php for($i=1; $i<10; $i++){
$this->view->someVariable.$i = $someClassName->someFunction();
} ?>
But it doesn’t work. I tried to declare $this->view->someVariable, but it doesn’t work any way . Any ideas?
I need to run in my zend project, inside a controller something like: <?php
Share
Maybe you need curly braces:
although I can’t help but wonder what you’re trying to achieve. Have you dumped the return value of
$someClassName->function()?