• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loadview in new tab or window

#1
[eluser]quince[/eluser]
Hi people Smile
how to load view in new tab or window?
thanks

#2
[eluser]Flemming[/eluser]
Code:
<a href="/controller/method" target="_blank">open in new tab</a>
?

#3
[eluser]bigtony[/eluser]
Or a more CI oriented way using URL Helper:
Code:
&lt;?php echo anchor_popup('controller/function', 'Show in New Window'); ?&gt;
Or:
Code:
&lt;?php echo anchor('controller/function', 'Show in New Window', array('target' = > '_blank')); ?&gt;

#4
[eluser]quince[/eluser]
thanks Smile

#5
[eluser]M Arfan[/eluser]
Code:
$data = array(
              'width'      => '800',
              'height'     => '600',
            );
        &lt;?php  echo anchor_popup('http://www.google.com', 'Google', $data); ?&gt;

Alzarartechnologies


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.