open a view in new tab

4

I have a view with a graph, but I do not want it to open inside my template and yes in a new aba .

$this->loadGrafico('graficoEscola', $grafico);
    
asked by anonymous 14.10.2018 / 14:15

1 answer

1

You have to add the target attribute to the <a> anchor tag and assign the attribute value to _blank to open in a new aba .

It would be something like:

<a target="_blank" href='graficoEscola'>$grafico</a>

In the form itself, you can get the same result:

<form action="#" method="get" target="_blank">
    ...
</form>
    
14.10.2018 / 15:08