我在Joomla中制作一个需要向用户发送邮件的自定义组件。我使用该模型从后端管理部分发送邮件。该模式使用此代码:Joomla从后端模型获取SEF前端URL
$btn_link = JURI::root().substr(JRoute::_("index.php?option=com_mymailer&view=messages&email={$myMsg->email}&tid={$myMsg->ticket_id}");
然后我用上面的链接的锚上的按钮在邮件正文中,并通过发送JMAIL。但是,到达的链接是非sef链接(因为SEF不适用于后端)。这是我得到的链接:
http://testsite.com/index.php?option=com_mymailer&view=messages&[email protected]&tid=27
而结果我想是(菜单存在命名为电子邮件):
http://testsite.com/mails/messages/[email protected]&tid=27
做任何机构有一个想法如何从中获取海基会前端网址后端代码。 在此先感谢。
看到这个[链接](http://docs.joomla.org/Supporting_SEF_URLs_in_your_component) – 2014-10-10 12:47:13
Ofcourse我所看到的页面,但该页面可是没有我的问题或任何接近的任何解决方案。 – Cruising2hell 2014-10-10 16:56:39