<?php
echo CHtml::link(
'Finalise Invoice',
array('/print/printpdf'),
array("target"=>"_blank"),
array('confirm'=> 'Are you sure you want to finalise your invoice?'));
?>
This does pop-up the confirm box.
<?php
echo CHtml::link(
'Finalise Invoice',
array('/print/printpdf'),
array('confirm'=> 'Are you sure you want to finalise your invoice?'));
?>
So it seems to be the target property setting or do I have to many parameters set?
What I want is when the user clicks on the link, a new window must open and the current window must reload on when the "OK" button was clicked on the confirm box.
I have tried this:
<?php
echo CHtml::link(
'Finalise Invoice',
array('/print/printpdf'),
array("target"=>"_blank"),
array('confirm'=> 'Are you sure you want to finalise your invoice?', 'onClick'=>'window.location.reload'));
?>