Thursday, April 19, 2012

CakePHP $this->Form->end('button text'); on same line with something

I have a simple cakephp form and would like for the 'save translation' button to be to the LEFT of a link which cancels and returns the user to the index, but I can't seem to get it working. It always puts the cancel link below the button.

Code I have now:

<?php echo $this->Form->end('Save Translation'); ?>
<?php echo $html->link('Cancel', array('action' => 'index')); ?>

Code I've tried:

echo $this->Form->end('Save Translation',array('label'=>'Save Translation','div' => false));

No comments:

Post a Comment