I'm having a problem, I'm creating a button, which is in a site X, but the controller a action of the link is in site Y. My problem is that when I click the button, it references the controller to action right , but the site base continues from Site X and not from Y.
<td> <?= (!empty($cnId)) ? $this->Html->link('Galeria', array('plugin'=>'Galeria','controller'=> 'Fotos','action' => 'index',$cnId),array('class'=>'btn btn-default')) : ''; ?> </td>
It's linking me to http: X/galeria/fotos/index/$id
, but I wanted it to link to Y/galeria/fotos/index/$id
. How do I do this?