Thursday, March 26, 2015

Plugin adding to link url

Hi All,

I'm definitely a noob and need a little help with a problem I'm having.

I'm using a plugin called ReportManager, which adds /report_manager/ to the URL prior to it's views.

The main layout of the site uses an Element for the global navigation with the links generated by the CakePHP HTMLHelper link method:; Here's my code for anexample:

<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span> List Customers'), array('controller' => 'customers', 'action' => 'index', 'full_base' => true), array('escape' => false)); ?>

The issue that I'm having is that, in 'norma pages within the site, this correctly generates a link to http://mysite.com/customers, but when in the repoort manager, the same code geneerates a link http://mysite.com/report_manager/customers.

Is there a way within CakePHP to force the linke to be relative to the base url irrespective of what the plugin (this or any other) addes to the URL without simply putting the '/customers' path into the link, which seems bad practice to me.

Thanks in advance.

Keith

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: