I am very new to PHP and this is my question:
I have this:
why this isn't right? Not possible php inside an 'if'?
I have this:
Code:
if (something) {
echo 'blablabla';
echo '<button type="button" title="<?php echo $this->__('foo') ?>" class="button" onclick="setLocation('<?php echo $this->getUrl('foo') ?>')"><span><span><?php echo $this->__('foo') ?></span></span></button>';
] else
Comment